aboutsummaryrefslogtreecommitdiff
path: root/libpod/pod_api.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-15 21:01:23 +0200
committerGitHub <noreply@github.com>2022-09-15 21:01:23 +0200
commitdf73f606ef45e3ec3358968090681a946083cd6f (patch)
treef8f34d772e7e4eb1716a3b3d3103fee2b21dfb06 /libpod/pod_api.go
parent50c538b3cc7a218fe009180bbe20b0c464add6f7 (diff)
parente19e0de5faf31137fa0197ea014d4615e641d33a (diff)
downloadpodman-df73f606ef45e3ec3358968090681a946083cd6f.tar.gz
podman-df73f606ef45e3ec3358968090681a946083cd6f.tar.bz2
podman-df73f606ef45e3ec3358968090681a946083cd6f.zip
Merge pull request #15757 from mheon/fix_15526
Introduce graph-based pod container removal
Diffstat (limited to 'libpod/pod_api.go')
-rw-r--r--libpod/pod_api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/pod_api.go b/libpod/pod_api.go
index 1bd686ddc..924d43436 100644
--- a/libpod/pod_api.go
+++ b/libpod/pod_api.go
@@ -40,7 +40,7 @@ func (p *Pod) startInitContainers(ctx context.Context) error {
icLock := initCon.lock
icLock.Lock()
var time *uint
- if err := p.runtime.removeContainer(ctx, initCon, false, false, true, time); err != nil {
+ if err := p.runtime.removeContainer(ctx, initCon, false, false, true, false, time); err != nil {
icLock.Unlock()
return fmt.Errorf("failed to remove once init container %s: %w", initCon.ID(), err)
}