diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-09 17:46:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 17:46:28 -0700 |
commit | 60ef8f8da90ec5200e62b79b24324fefde2c7036 (patch) | |
tree | ec403dcd9b0b80d188e400a18d432539b67faf28 /libpod/container_internal.go | |
parent | 40a1df38d1b6971dd1df9e06bf190c924dbad5a3 (diff) | |
parent | 09ff62429a324e01ad2c584afe9a5f66f580ae78 (diff) | |
download | podman-60ef8f8da90ec5200e62b79b24324fefde2c7036.tar.gz podman-60ef8f8da90ec5200e62b79b24324fefde2c7036.tar.bz2 podman-60ef8f8da90ec5200e62b79b24324fefde2c7036.zip |
Merge pull request #2663 from jwhonce/wip/remote_umount
Implement podman-remote umount and rm command
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 22df36c11..3c7319963 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -948,7 +948,7 @@ func (c *Container) start() error { // Internal, non-locking function to stop container func (c *Container) stop(timeout uint) error { - logrus.Debugf("Stopping ctr %s with timeout %d", c.ID(), timeout) + logrus.Debugf("Stopping ctr %s (timeout %d)", c.ID(), timeout) if err := c.runtime.ociRuntime.stopContainer(c, timeout); err != nil { return err @@ -1064,14 +1064,16 @@ func (c *Container) mountStorage() (string, error) { func (c *Container) cleanupStorage() error { if !c.state.Mounted { // Already unmounted, do nothing - logrus.Debugf("Storage is already unmounted, skipping...") + logrus.Debugf("Container %s storage is already unmounted, skipping...", c.ID()) return nil } + for _, mount := range c.config.Mounts { if err := c.unmountSHM(mount); err != nil { return err } } + if c.config.Rootfs != "" { return nil } |