Merge pull request #18076 from rhvgoyal/unmount-recursive

Unmount recursively to unmount volumes
This commit is contained in:
Alexander Morozov 2015-11-19 13:46:48 -08:00
commit 24fb3659df
1 changed files with 2 additions and 2 deletions

View File

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