mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Add squash-all, fix squash option in build
Translate the podman build --squash command to podman build --layers=false which has the same functionality as docker build --squash. Add a new option --squash-all which will squash all layers into one. This will be translated to buildah bud --squash for the buildah bud api. Also allow only one option, squash, layers or squash--all to be used per build command. Fixes: https://github.com/containers/buildah/issues/1234 Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
This commit is contained in:
@ -405,6 +405,11 @@ If you omit the unit, the system uses bytes. If you omit the size entirely, the
|
||||
|
||||
**--squash**
|
||||
|
||||
Squash all of the image's new layers into a single new layer; any preexisting layers
|
||||
are not squashed.
|
||||
|
||||
**--squash-all**
|
||||
|
||||
Squash all of the new image's layers (including those inherited from a base image) into a single new layer.
|
||||
|
||||
**--tag**, **-t**=*imageName*
|
||||
|
Reference in New Issue
Block a user