实际上,题目说明了一切。
我找到了两个可能解决问题的工具,但我更愿意使用内置在podman/buildah中的工具,这些工具已经具有处理图像中的层的诀窍:
发布于 2021-10-09 18:41:36
我在podman中看到了两个选项
$ podman build --help | grep squash
--squash squash newly built layers into a single new layer
--squash-all Squash all layers into a single layer
$ podman --version
podman version 3.4.0我认为后者也压缩了基本容器层,这不是这个命令的Docker行为。
您可以在此GitHub PR查看更多信息。
https://stackoverflow.com/questions/69438487
复制相似问题