diff --git a/daemon/container.go b/daemon/container.go index a6bb4120ef..2cc0ecb3bd 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -1172,7 +1172,7 @@ func (container *Container) unmountVolumes(forceSyscall bool) error { for _, volumeMount := range volumeMounts { if forceSyscall { - system.UnmountWithSyscall(volumeMount.Destination) + system.Unmount(volumeMount.Destination) } if volumeMount.Volume != nil { diff --git a/pkg/system/syscall_unix.go b/pkg/system/syscall_unix.go index e1b90b38e6..50054765af 100644 --- a/pkg/system/syscall_unix.go +++ b/pkg/system/syscall_unix.go @@ -4,8 +4,8 @@ package system import "syscall" -// UnmountWithSyscall is a platform-specific helper function to call +// Unmount is a platform-specific helper function to call // the unmount syscall. -func UnmountWithSyscall(dest string) { +func Unmount(dest string) { syscall.Unmount(dest, 0) } diff --git a/pkg/system/syscall_windows.go b/pkg/system/syscall_windows.go index 26bd80bd5d..3a3a55b266 100644 --- a/pkg/system/syscall_windows.go +++ b/pkg/system/syscall_windows.go @@ -1,6 +1,6 @@ package system -// UnmountWithSyscall is a platform-specific helper function to call +// Unmount is a platform-specific helper function to call // the unmount syscall. Not supported on Windows -func UnmountWithSyscall(dest string) { +func Unmount(dest string) { }