Merge pull request #21794 from coolljt0725/cleanipc_quiet

Don't throw error on clenaup ipc mounts if it does not exists
This commit is contained in:
Tibor Vass 2016-04-06 16:10:53 -04:00
commit 02297d5a33

View file

@ -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))
}