summaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-09-24 09:53:08 -0400
committerMatthew Heon <matthew.heon@gmail.com>2018-10-02 12:05:22 -0400
commit29dbab64407d11f314b894c37deb4419faeefc56 (patch)
tree5e377ce2d4ec78fba466887bbe8e0dfd97c08312 /libpod/runtime_ctr.go
parent2c7f97d5a782d35efc195baf7a7ca9016ca05409 (diff)
downloadpodman-29dbab64407d11f314b894c37deb4419faeefc56.tar.gz
podman-29dbab64407d11f314b894c37deb4419faeefc56.tar.bz2
podman-29dbab64407d11f314b894c37deb4419faeefc56.zip
Address review comments and fix ps output
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index b8a8b6c20..0fe896e5f 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -332,9 +332,9 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force bool)
label.ReleaseLabel(c.ProcessLabel())
r.reserveLabels()
}
- // Delete the container
- // Only do this if we're not ContainerStateConfigured - if we are,
- // we haven't been created in the runtime yet
+ // Delete the container.
+ // Not needed in Configured and Exited states, where the container
+ // doesn't exist in the runtime
if c.state.State != ContainerStateConfigured &&
c.state.State != ContainerStateExited {
if err := c.delete(ctx); err != nil {