From 0894026fe2138e8b076e2ebb0ecff895d4ad6f32 Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Wed, 6 Apr 2016 07:34:31 -0400 Subject: [PATCH] Don't throw error on clenaup ipc mounts if it does not exists Signed-off-by: Lei Jitang Upstream-commit: 5bd1786387bdb0af2e665fecde3ac08f8db61008 Component: engine --- components/engine/container/container_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/container/container_unix.go b/components/engine/container/container_unix.go index 754090f967..8273bdb025 100644 --- a/components/engine/container/container_unix.go +++ b/components/engine/container/container_unix.go @@ -214,7 +214,7 @@ func (container *Container) UnmountIpcMounts(unmount func(pth string) error) { logrus.Error(err) warnings = append(warnings, err.Error()) } else if shmPath != "" { - if err := unmount(shmPath); err != nil { + if err := unmount(shmPath); err != nil && !os.IsNotExist(err) { warnings = append(warnings, fmt.Sprintf("failed to umount %s: %v", shmPath, err)) }