github.com/LazyboyChen7/engine@v17.12.1-ce-rc2+incompatible/container/container_notlinux.go (about) 1 // +build freebsd 2 3 package container 4 5 import ( 6 "golang.org/x/sys/unix" 7 ) 8 9 func detachMounted(path string) error { 10 // FreeBSD do not support the lazy unmount or MNT_DETACH feature. 11 // Therefore there are separate definitions for this. 12 return unix.Unmount(path, 0) 13 } 14 15 // SecretMounts returns the mounts for the secret path 16 func (container *Container) SecretMounts() []Mount { 17 return nil 18 } 19 20 // UnmountSecrets unmounts the fs for secrets 21 func (container *Container) UnmountSecrets() error { 22 return nil 23 }