summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_pod.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_pod.go b/libpod/runtime_pod.go
index 44ef453a2..248cadf09 100644
--- a/libpod/runtime_pod.go
+++ b/libpod/runtime_pod.go
@@ -97,7 +97,7 @@ func (r *Runtime) RemovePod(p *Pod, removeCtrs, force bool) error {
}
// If the container is running and force is not set we can't do anything
- if ctr.state.State == ContainerStateRunning {
+ if ctr.state.State == ContainerStateRunning && !force {
return errors.Wrapf(ErrCtrStateInvalid, "pod %s contains container %s which is running", p.ID(), ctr.ID())
}