Ver Fonte

Merge pull request #9886 from crquan/patch-1

need to call syscall.Unmount with MNT_DETACH
Vincent Batts há 10 anos atrás
pai
commit
53253ee1fb
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      daemon/graphdriver/devmapper/deviceset.go

+ 1 - 1
daemon/graphdriver/devmapper/deviceset.go

@@ -1433,7 +1433,7 @@ func (devices *DeviceSet) UnmountDevice(hash string) error {
 	}
 	}
 
 
 	log.Debugf("[devmapper] Unmount(%s)", info.mountPath)
 	log.Debugf("[devmapper] Unmount(%s)", info.mountPath)
-	if err := syscall.Unmount(info.mountPath, 0); err != nil {
+	if err := syscall.Unmount(info.mountPath, syscall.MNT_DETACH); err != nil {
 		return err
 		return err
 	}
 	}
 	log.Debugf("[devmapper] Unmount done")
 	log.Debugf("[devmapper] Unmount done")