Browse code

Don't throw error on clenaup ipc mounts if it does not exists

Signed-off-by: Lei Jitang <leijitang@huawei.com>

Lei Jitang authored on 2016/04/06 20:34:31
Showing 1 changed files
... ...
@@ -214,7 +214,7 @@ func (container *Container) UnmountIpcMounts(unmount func(pth string) error) {
214 214
 			logrus.Error(err)
215 215
 			warnings = append(warnings, err.Error())
216 216
 		} else if shmPath != "" {
217
-			if err := unmount(shmPath); err != nil {
217
+			if err := unmount(shmPath); err != nil && !os.IsNotExist(err) {
218 218
 				warnings = append(warnings, fmt.Sprintf("failed to umount %s: %v", shmPath, err))
219 219
 			}
220 220