Browse Source

Merge pull request #18076 from rhvgoyal/unmount-recursive

Unmount recursively to unmount volumes
Alexander Morozov 9 years ago
parent
commit
24fb3659df
1 changed files with 2 additions and 2 deletions
  1. 2 2
      daemon/container_unix.go

+ 2 - 2
daemon/container_unix.go

@@ -1508,8 +1508,8 @@ func (container *Container) unmountVolumes(forceSyscall bool) error {
 
 	for _, volumeMount := range volumeMounts {
 		if forceSyscall {
-			if err := system.Unmount(volumeMount.Destination); err != nil {
-				logrus.Warnf("%s unmountVolumes: Failed to force umount %v", container.ID, err)
+			if err := detachMounted(volumeMount.Destination); err != nil {
+				logrus.Warnf("%s unmountVolumes: Failed to do lazy umount %v", container.ID, err)
 			}
 		}