From 5375401960cf0a9b716bb18eacdb07ffbb0e6da1 Mon Sep 17 00:00:00 2001 From: cdoern Date: Wed, 20 Apr 2022 21:40:47 -0400 Subject: podman container clone -f add the option -f to force remove the parent container if --destory is specified resolves #13917 Signed-off-by: cdoern --- pkg/domain/infra/abi/containers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/domain/infra/abi') diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go index 100842c69..db58569c5 100644 --- a/pkg/domain/infra/abi/containers.go +++ b/pkg/domain/infra/abi/containers.go @@ -1589,7 +1589,7 @@ func (ic *ContainerEngine) ContainerClone(ctx context.Context, ctrCloneOpts enti if ctrCloneOpts.Destroy { var time *uint - err := ic.Libpod.RemoveContainer(context.Background(), c, false, false, time) + err = ic.Libpod.RemoveContainer(context.Background(), c, ctrCloneOpts.Force, false, time) if err != nil { return nil, err } -- cgit v1.2.3-54-g00ecf