1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #17630 from LK4D4/syscall_umount_warn

Do not ignore error from syscall.Unmount
This commit is contained in:
Brian Goff 2015-11-03 19:58:19 -05:00
commit c9208953fa

View file

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