diff --git a/daemon/container.go b/daemon/container.go index a6bb4120ef6cf950414185b1b30e23de8af03d50..2cc0ecb3bd3f8c6fa36a9f71b94054fd245b8b3f 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 e1b90b38e6c628c9de9a8c5d7cf7c4a7fe565c2c..50054765af7a424fb6f695302d6dedf9b8506545 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 26bd80bd5d7929c6536265eb79d727dfc646ffa8..3a3a55b26658a2785827045e44f52f80cb4c7bca 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) { }