diff --git a/container/container_unix.go b/container/container_unix.go index 754090f967..8273bdb025 100644 --- a/container/container_unix.go +++ b/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)) }