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 --- pkg/domain/infra/abi/containers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/domain/infra/abi/containers.go') diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go index a5c4647d7..f79e1a5e0 100644 --- a/pkg/domain/infra/abi/containers.go +++ b/pkg/domain/infra/abi/containers.go @@ -528,6 +528,7 @@ func (ic *ContainerEngine) ContainerCommit(ctx context.Context, nameOrID string, Message: options.Message, Changes: options.Changes, Author: options.Author, + Squash: options.Squash, } newImage, err := ctr.Commit(ctx, options.ImageName, opts) if err != nil { -- cgit v1.2.3-54-g00ecf