From fbbcb957c710ab817c969a8dc3ff3c46619604e2 Mon Sep 17 00:00:00 2001 From: Aditya R Date: Tue, 22 Feb 2022 22:10:34 +0530 Subject: container-commit: support --squash to squash layers into one Allow users to commit containers into a single layer. Usage ```bash podman container commit --squash ``` Signed-off-by: Aditya R --- cmd/podman/containers/commit.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/podman') 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") } -- cgit v1.2.3-54-g00ecf