Versions in this module Expand all Collapse all v1 v1.7.0 Jun 18, 2015 Changes in this version type Command + UTS *UTS type Network + NamespacePath string type NetworkInterface + HairpinMode bool type Resources + BlkioWeight int64 + CpuPeriod int64 + CpuQuota int64 + CpusetMems string + OomKillDisable bool + type UTS struct + HostUTS bool v1.6.0 Apr 16, 2015 Changes in this version + func GetAllCapabilities() []string + func InitContainer(c *Command) *configs.Config + func SetupCgroups(container *configs.Config, c *Command) error + type Capabilities []*CapabilityMapping + type CapabilityMapping struct + Key string + Value capability.Cap + func GetCapability(key string) *CapabilityMapping + func (c *CapabilityMapping) String() string type Command + CgroupParent string + Ipc *Ipc + Pid *Pid + ReadonlyRootfs bool type Driver + Stats func(id string) (*ResourceStats, error) + type ExitStatus struct + ExitCode int + OOMKilled bool + type Ipc struct + ContainerID string + HostIpc bool type NetworkInterface + GlobalIPv6Address string + GlobalIPv6PrefixLen int + IPv6Gateway string + LinkLocalIPv6Address string + type Pid struct + HostPid bool + type ResourceStats struct + MemoryLimit int64 + Read time.Time + SystemUsage uint64 + func Stats(containerDir string, containerMemoryLimit int64, machineMemory int64) (*ResourceStats, error) type Resources + CpusetCpus string + Rlimits []*ulimit.Rlimit v1.3.0 Oct 15, 2014 Changes in this version + var ErrDriverAlreadyRegistered = errors.New("A driver already registered this docker init function") + var ErrDriverNotFound = errors.New("The requested docker init has not been found") + var ErrNotRunning = errors.New("Process could not be started") + var ErrWaitTimeoutReached = errors.New("Wait timeout reached") + func TweakCapabilities(basics, adds, drops []string) ([]string, error) + type Command struct + AllowedDevices []*devices.Device + AppArmorProfile string + AutoCreatedDevices []*devices.Device + CapAdd []string + CapDrop []string + ConfigPath string + ContainerPid int + ID string + InitPath string + LxcConfig []string + MountLabel string + Mounts []Mount + Network *Network + ProcessConfig ProcessConfig + ProcessLabel string + Resources *Resources + Rootfs string + WorkingDir string + type Context map[string]string + type Driver interface + Clean func(id string) error + Exec func(c *Command, processConfig *ProcessConfig, pipes *Pipes, ...) (int, error) + GetPidsForContainer func(id string) ([]int, error) + Info func(id string) Info + Kill func(c *Command, sig int) error + Name func() string + Pause func(c *Command) error + Run func(c *Command, pipes *Pipes, startCallback StartCallback) (int, error) + Terminate func(c *Command) error + Unpause func(c *Command) error + type Info interface + IsRunning func() bool + type Mount struct + Destination string + Private bool + Slave bool + Source string + Writable bool + type Network struct + ContainerID string + HostNetworking bool + Interface *NetworkInterface + Mtu int + type NetworkInterface struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int + MacAddress string + type Pipes struct + Stderr io.Writer + Stdin io.ReadCloser + Stdout io.Writer + func NewPipes(stdin io.ReadCloser, stdout, stderr io.Writer, useStdin bool) *Pipes + type ProcessConfig struct + Arguments []string + Console string + Entrypoint string + Privileged bool + Terminal Terminal + Tty bool + User string + type Resources struct + CpuShares int64 + Cpuset string + Memory int64 + MemorySwap int64 + type StartCallback func(*ProcessConfig, int) + type StdConsole struct + func NewStdConsole(processConfig *ProcessConfig, pipes *Pipes) (*StdConsole, error) + func (s *StdConsole) AttachPipes(command *exec.Cmd, pipes *Pipes) error + func (s *StdConsole) Close() error + func (s *StdConsole) Resize(h, w int) error + type Terminal interface + Resize func(height, width int) error + type TtyTerminal interface + Master func() *os.File