Documentation ¶
Index ¶
Constants ¶
View Source
const OLD_ROOTFS = "oldrootfs"
Variables ¶
View Source
var DefaultHostMounts = []HostMountOption{ { Src: "/proc", Flags: 0, Type: "proc", }, { Src: "/dev", Flags: syscall.MS_BIND | syscall.MS_PRIVATE, Type: "dev", }, { Src: "/sys", Flags: syscall.MS_BIND | syscall.MS_PRIVATE, Type: "sys", }, { Src: "/etc/resolv.conf", Flags: syscall.MS_BIND | syscall.MS_RDONLY | syscall.MS_PRIVATE, Type: "", }, { Src: "/etc/passwd", Flags: syscall.MS_BIND | syscall.MS_RDONLY | syscall.MS_PRIVATE, Type: "", }, { Src: "/etc/group", Flags: syscall.MS_BIND | syscall.MS_RDONLY | syscall.MS_PRIVATE, Type: "", }, { Src: "/etc/hostname", Flags: syscall.MS_BIND | syscall.MS_RDONLY | syscall.MS_PRIVATE, Type: "", IgnoreNoSourceError: true, }, { Src: "/etc/hosts", Flags: syscall.MS_BIND | syscall.MS_RDONLY | syscall.MS_PRIVATE, Type: "", }, { Src: "/var/run", Flags: syscall.MS_BIND | syscall.MS_RDONLY | syscall.MS_PRIVATE, Type: "", }, { Src: "/var/log/wtmp", Flags: syscall.MS_BIND | syscall.MS_RDONLY | syscall.MS_PRIVATE, Type: "", }, }
Functions ¶
func PrepareMountTargets ¶
func PrepareMountTargets(rootfs string, options []HostMountOption) error
TODO: root で実行する必要があるため、pullの段階で準備する
Types ¶
type HostMountOption ¶
type SLCClient ¶
type SLCClient struct { MountOptions []HostMountOption // contains filtered or unexported fields }
func (*SLCClient) GetImageDir ¶
Click to show internal directories.
Click to hide internal directories.