summaryrefslogtreecommitdiff
path: root/docs/podman-build.1.md
diff options
context:
space:
mode:
authorTomSweeneyRedHat <tsweeney@redhat.com>2019-10-07 19:55:56 -0400
committerTomSweeneyRedHat <tsweeney@redhat.com>2019-10-11 13:28:38 -0400
commitbeadd2694b048f939cad1f4d32676fca4c84d0bd (patch)
tree0409e9ee960edec17169464a7e38552d1a27a606 /docs/podman-build.1.md
parenteb6ca054fc93e5f863581e72923cb1e80fc5ab88 (diff)
downloadpodman-beadd2694b048f939cad1f4d32676fca4c84d0bd.tar.gz
podman-beadd2694b048f939cad1f4d32676fca4c84d0bd.tar.bz2
podman-beadd2694b048f939cad1f4d32676fca4c84d0bd.zip
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>
Diffstat (limited to 'docs/podman-build.1.md')
-rw-r--r--docs/podman-build.1.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/podman-build.1.md b/docs/podman-build.1.md
index c16d964a9..567d0ead3 100644
--- a/docs/podman-build.1.md
+++ b/docs/podman-build.1.md
@@ -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*