Versions in this module Expand all Collapse all v0 v0.11.0 May 7, 2014 Changes in this version + const DefaultPathEnv + const MaxImageDepth + var DefaultDns = []string + var ErrContainerStart = errors.New("The container failed to start. Unknown error") + var ErrContainerStartTimeout = errors.New("The container failed to start due to timed out.") + var ErrNoTTY = errors.New("No PTY found") + var ErrNotATTY = errors.New("The PTY is not a file") + func GetFullContainerName(name string) (string, error) + type BindMap struct + DstPath string + Mode string + SrcPath string + type Container struct + Args []string + Config *runconfig.Config + Created time.Time + Driver string + ExecDriver string + HostnamePath string + HostsPath string + ID string + Image string + MountLabel string + Name string + NetworkSettings *NetworkSettings + Path string + ProcessLabel string + ResolvConfPath string + State State + Volumes map[string]string + VolumesRW map[string]bool + func (container *Container) Changes() ([]archive.Change, error) + func (container *Container) Copy(resource string) (io.ReadCloser, error) + func (container *Container) DisableLink(name string) + func (container *Container) Export() (archive.Archive, error) + func (container *Container) ExportRw() (archive.Archive, error) + func (container *Container) Exposes(p nat.Port) bool + func (container *Container) FromDisk() error + func (container *Container) GetImage() (*image.Image, error) + func (container *Container) GetMountLabel() string + func (container *Container) GetProcessLabel() string + func (container *Container) GetPtyMaster() (*os.File, error) + func (container *Container) GetSize() (int64, int64) + func (container *Container) HostConfig() *runconfig.HostConfig + func (container *Container) Inject(file io.Reader, pth string) error + func (container *Container) Kill() error + func (container *Container) KillSig(sig int) error + func (container *Container) Mount() error + func (container *Container) Output() (output []byte, err error) + func (container *Container) ReadLog(name string) (io.Reader, error) + func (container *Container) Resize(h, w int) error + func (container *Container) Restart(seconds int) error + func (container *Container) RootfsPath() string + func (container *Container) Run() error + func (container *Container) SetHostConfig(hostConfig *runconfig.HostConfig) + func (container *Container) Start() (err error) + func (container *Container) StderrLogPipe() io.ReadCloser + func (container *Container) StderrPipe() (io.ReadCloser, error) + func (container *Container) StdinPipe() (io.WriteCloser, error) + func (container *Container) StdoutLogPipe() io.ReadCloser + func (container *Container) StdoutPipe() (io.ReadCloser, error) + func (container *Container) Stop(seconds int) error + func (container *Container) ToDisk() (err error) + func (container *Container) Unmount() error + func (container *Container) Wait() int + func (container *Container) WaitTimeout(timeout time.Duration) error + func (container *Container) WriteHostConfig() (err error) + type Daemon struct + func NewDaemon(config *daemonconfig.Config, eng *engine.Engine) (*Daemon, error) + func NewDaemonFromDirectory(config *daemonconfig.Config, eng *engine.Engine) (*Daemon, error) + func (daemon *Daemon) Attach(container *Container, stdin io.ReadCloser, stdinCloser io.Closer, ...) chan error + func (daemon *Daemon) Changes(container *Container) ([]archive.Change, error) + func (daemon *Daemon) Children(name string) (map[string]*Container, error) + func (daemon *Daemon) Close() error + func (daemon *Daemon) Commit(container *Container, repository, tag, comment, author string, ...) (*image.Image, error) + func (daemon *Daemon) Config() *daemonconfig.Config + func (daemon *Daemon) ContainerGraph() *graphdb.Database + func (daemon *Daemon) Create(config *runconfig.Config, name string) (*Container, []string, error) + func (daemon *Daemon) Destroy(container *Container) error + func (daemon *Daemon) Diff(container *Container) (archive.Archive, error) + func (daemon *Daemon) ExecutionDriver() execdriver.Driver + func (daemon *Daemon) Exists(id string) bool + func (daemon *Daemon) Get(name string) *Container + func (daemon *Daemon) GetByName(name string) (*Container, error) + func (daemon *Daemon) Graph() *graph.Graph + func (daemon *Daemon) GraphDriver() graphdriver.Driver + func (daemon *Daemon) Kill(c *Container, sig int) error + func (daemon *Daemon) List() []*Container + func (daemon *Daemon) LogToDisk(src *utils.WriteBroadcaster, dst, stream string) error + func (daemon *Daemon) Mount(container *Container) error + func (daemon *Daemon) Nuke() error + func (daemon *Daemon) Register(container *Container) error + func (daemon *Daemon) RegisterLink(parent, child *Container, alias string) error + func (daemon *Daemon) Repositories() *graph.TagStore + func (daemon *Daemon) Run(c *Container, pipes *execdriver.Pipes, startCallback execdriver.StartCallback) (int, error) + func (daemon *Daemon) SetServer(server Server) + func (daemon *Daemon) SystemConfig() *sysinfo.SysInfo + func (daemon *Daemon) SystemInitPath() string + func (daemon *Daemon) Unmount(container *Container) error + func (daemon *Daemon) Volumes() *graph.Graph + type History []*Container + func (history *History) Add(container *Container) + func (history *History) Len() int + func (history *History) Less(i, j int) bool + func (history *History) Swap(i, j int) + type NetworkSettings struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int + PortMapping map[string]PortMapping + Ports nat.PortMap + func (settings *NetworkSettings) PortMappingAPI() *engine.Table + type PortMapping map[string]string + type Server interface + IsRunning func() bool + LogEvent func(action, id, from string) *utils.JSONMessage + type State struct + ExitCode int + FinishedAt time.Time + Pid int + Running bool + StartedAt time.Time + func (s *State) GetExitCode() int + func (s *State) IsRunning() bool + func (s *State) SetRunning(pid int) + func (s *State) SetStopped(exitCode int) + func (s *State) String() string