aboutsummaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-12-20 12:13:22 +0100
committerGitHub <noreply@github.com>2019-12-20 12:13:22 +0100
commite33d7e9fab9974c8c13868e7434f78feab7508af (patch)
tree8eb093ebf09aed38f569534517e395c9439bec67 /libpod/runtime_ctr.go
parent1ba6d0f883e17f2d460773f929873563b753d3e6 (diff)
parent123b8c627d53c6bd76ff4d9f6a74674341a987c0 (diff)
downloadpodman-e33d7e9fab9974c8c13868e7434f78feab7508af.tar.gz
podman-e33d7e9fab9974c8c13868e7434f78feab7508af.tar.bz2
podman-e33d7e9fab9974c8c13868e7434f78feab7508af.zip
Merge pull request #4727 from rhatdan/pidns
if container is not in a pid namespace, stop all processes
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index d272e4549..3cf70f417 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -463,7 +463,7 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force bool,
// Check that the container's in a good state to be removed
if c.state.State == define.ContainerStateRunning {
- if err := c.stop(c.StopTimeout(), true); err != nil {
+ if err := c.stop(c.StopTimeout()); err != nil {
return errors.Wrapf(err, "cannot remove container %s as it could not be stopped", c.ID())
}
}