github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/daemon/graphdriver/aufs/mount.go (about) 1 // +build linux 2 3 package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs" 4 5 import ( 6 "os/exec" 7 8 "github.com/sirupsen/logrus" 9 "golang.org/x/sys/unix" 10 ) 11 12 // Unmount the target specified. 13 func Unmount(target string) error { 14 if err := exec.Command("auplink", target, "flush").Run(); err != nil { 15 logrus.Warnf("Couldn't run auplink before unmount %s: %s", target, err) 16 } 17 return unix.Unmount(target, 0) 18 }