diff options
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r-- | libpod/runtime_ctr.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go index 1aca559de..762044dbd 100644 --- a/libpod/runtime_ctr.go +++ b/libpod/runtime_ctr.go @@ -228,9 +228,9 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force bool) return err } - pauseID := pod.state.PauseContainerID - if c.ID() == pauseID { - return errors.Errorf("a pause container cannot be removed without removing pod %s", pod.ID()) + infraID := pod.state.InfraContainerID + if c.ID() == infraID { + return errors.Errorf("an infra container cannot be removed without removing pod %s", pod.ID()) } } |