github.com/jwhonce/docker@v0.6.7-0.20190327063223-da823cf3a5a3/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  	"golang.org/x/sys/unix"
     9  )
    10  
    11  // Unmount the target specified.
    12  func Unmount(target string) error {
    13  	if err := exec.Command("auplink", target, "flush").Run(); err != nil {
    14  		logger.WithError(err).Warnf("Couldn't run auplink before unmount %s", target)
    15  	}
    16  	return unix.Unmount(target, 0)
    17  }