2021-08-23 09:14:53 -04:00
|
|
|
//go:build linux || freebsd
|
2015-09-09 22:23:06 -04:00
|
|
|
// +build linux freebsd
|
|
|
|
|
2018-02-05 16:05:59 -05:00
|
|
|
package system // import "github.com/docker/docker/pkg/system"
|
2015-09-09 22:23:06 -04:00
|
|
|
|
2017-05-23 10:22:32 -04:00
|
|
|
import "golang.org/x/sys/unix"
|
2015-09-09 22:23:06 -04:00
|
|
|
|
2015-10-26 16:34:49 -04:00
|
|
|
// Unmount is a platform-specific helper function to call
|
2015-09-09 22:23:06 -04:00
|
|
|
// the unmount syscall.
|
2015-11-02 16:18:07 -05:00
|
|
|
func Unmount(dest string) error {
|
2017-05-23 10:22:32 -04:00
|
|
|
return unix.Unmount(dest, 0)
|
2015-09-09 22:23:06 -04:00
|
|
|
}
|