Description
podman build --squash squashes all layers into a single layer, whereas docker build --squash only squashes the new layers but keeps the layers from the base container. Is this difference intentional? It IMHO limits the usefulness of the --squash option quite a bit.
Steps to reproduce the issue:
- podman build --squash
Describe the results you received:
The created container has only one layer.
Describe the results you expected:
The layers of the base container should be kept intact.
Output of rpm -q buildah or apt list buildah:
Output of buildah version:
Version: 1.5
Go Version: go1.11.1
Image Spec: 1.0.0
Runtime Spec: 1.0.0
CNI Spec: 0.4.0
libcni Version: v0.7.0-alpha1
Git Commit: 87239ae7046ea3a25f644cd0789b3d6678dc144d
Built: Fri Nov 23 12:00:00 2018
OS/Arch: linux/amd64
Output of podman version if reporting a podman build issue:
Version: 0.11.1.1
Go Version: go1.11.1
OS/Arch: linux/amd64
Description
podman build --squashsquashes all layers into a single layer, whereasdocker build --squashonly squashes the new layers but keeps the layers from the base container. Is this difference intentional? It IMHO limits the usefulness of the --squash option quite a bit.Steps to reproduce the issue:
Describe the results you received:
The created container has only one layer.
Describe the results you expected:
The layers of the base container should be kept intact.
Output of
rpm -q buildahorapt list buildah:Output of
buildah version:Output of
podman versionif reporting apodman buildissue: