summaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-02-21 15:19:38 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-22 14:49:36 +0000
commit8ce7c5bdd1b2c7efa1c12860888c65e1236dd0e6 (patch)
tree03974fbd5f25f7d0b777d1db07631f00da11eaa7 /libpod/container.go
parent7c51fa05a298ae69acb0fa8481e6fa76fceb75f4 (diff)
downloadpodman-8ce7c5bdd1b2c7efa1c12860888c65e1236dd0e6.tar.gz
podman-8ce7c5bdd1b2c7efa1c12860888c65e1236dd0e6.tar.bz2
podman-8ce7c5bdd1b2c7efa1c12860888c65e1236dd0e6.zip
Make operations on pod containers as a group independent
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #361 Approved by: rhatdan
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container.go b/libpod/container.go
index 141d41656..3cb2a0b85 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -492,7 +492,7 @@ func (c *Container) NamespacePath(ns LinuxNS) (string, error) {
return "", errors.Wrapf(err, "error updating container %s state", c.ID())
}
- if c.state.State != ContainerStateRunning {
+ if c.state.State != ContainerStateRunning && c.state.State != ContainerStatePaused {
return "", errors.Wrapf(ErrCtrStopped, "cannot get namespace path unless container %s is running", c.ID())
}