summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-23 13:07:00 -0500
committerGitHub <noreply@github.com>2022-02-23 13:07:00 -0500
commit991c90de1fca66e7c99b864816d0292dd33b73dc (patch)
treefc405d7a90ae4d3f755a4760c17f3d84e94550f7 /cmd
parent113f855802176a4ffbe167304ab83942116a65f1 (diff)
parentfbbcb957c710ab817c969a8dc3ff3c46619604e2 (diff)
downloadpodman-991c90de1fca66e7c99b864816d0292dd33b73dc.tar.gz
podman-991c90de1fca66e7c99b864816d0292dd33b73dc.tar.bz2
podman-991c90de1fca66e7c99b864816d0292dd33b73dc.zip
Merge pull request #13314 from flouthoc/container-commit-squash
container-commit: support `--squash` to squash layers into one if users want.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/containers/commit.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/containers/commit.go b/cmd/podman/containers/commit.go
index f74fd4ab1..e0cadd5b0 100644
--- a/cmd/podman/containers/commit.go
+++ b/cmd/podman/containers/commit.go
@@ -77,6 +77,7 @@ func commitFlags(cmd *cobra.Command) {
flags.BoolVarP(&commitOptions.Pause, "pause", "p", false, "Pause container during commit")
flags.BoolVarP(&commitOptions.Quiet, "quiet", "q", false, "Suppress output")
+ flags.BoolVarP(&commitOptions.Squash, "squash", "s", false, "squash newly built layers into a single new layer")
flags.BoolVar(&commitOptions.IncludeVolumes, "include-volumes", false, "Include container volumes as image volumes")
}