Versions in this module Expand all Collapse all v0 v0.10.0 Apr 8, 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 + Name string + NetworkSettings *NetworkSettings + Path string + ResolvConfPath string + State State + Volumes map[string]string + VolumesRW map[string]bool + func (container *Container) ArgsAsString() string + func (container *Container) Attach(stdin io.ReadCloser, stdinCloser io.Closer, stdout io.Writer, stderr io.Writer) chan error + 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) EnvConfigPath() (string, error) + 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) 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) StderrPipe() (io.ReadCloser, error) + func (container *Container) StdinPipe() (io.WriteCloser, error) + 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) When() time.Time + func (container *Container) WriteHostConfig() (err error) + 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 Runtime struct + func NewRuntime(config *daemonconfig.Config, eng *engine.Engine) (*Runtime, error) + func NewRuntimeFromDirectory(config *daemonconfig.Config, eng *engine.Engine) (*Runtime, error) + func (runtime *Runtime) Changes(container *Container) ([]archive.Change, error) + func (runtime *Runtime) Children(name string) (map[string]*Container, error) + func (runtime *Runtime) Close() error + func (runtime *Runtime) Commit(container *Container, repository, tag, comment, author string, ...) (*image.Image, error) + func (runtime *Runtime) Config() *daemonconfig.Config + func (runtime *Runtime) ContainerGraph() *graphdb.Database + func (runtime *Runtime) Create(config *runconfig.Config, name string) (*Container, []string, error) + func (runtime *Runtime) Destroy(container *Container) error + func (runtime *Runtime) Diff(container *Container) (archive.Archive, error) + func (runtime *Runtime) ExecutionDriver() execdriver.Driver + func (runtime *Runtime) Exists(id string) bool + func (runtime *Runtime) Get(name string) *Container + func (runtime *Runtime) GetByName(name string) (*Container, error) + func (runtime *Runtime) Graph() *graph.Graph + func (runtime *Runtime) GraphDriver() graphdriver.Driver + func (runtime *Runtime) Kill(c *Container, sig int) error + func (runtime *Runtime) List() []*Container + func (runtime *Runtime) LogToDisk(src *utils.WriteBroadcaster, dst, stream string) error + func (runtime *Runtime) Mount(container *Container) error + func (runtime *Runtime) Nuke() error + func (runtime *Runtime) Register(container *Container) error + func (runtime *Runtime) RegisterLink(parent, child *Container, alias string) error + func (runtime *Runtime) Repositories() *graph.TagStore + func (runtime *Runtime) Run(c *Container, pipes *execdriver.Pipes, startCallback execdriver.StartCallback) (int, error) + func (runtime *Runtime) SetServer(server Server) + func (runtime *Runtime) SystemConfig() *sysinfo.SysInfo + func (runtime *Runtime) SystemInitPath() string + func (runtime *Runtime) Unmount(container *Container) error + func (runtime *Runtime) Volumes() *graph.Graph + type Server interface + IsRunning func() bool + LogEvent func(action, id, from string) *utils.JSONMessage + type State struct + ExitCode int + FinishedAt time.Time + Ghost bool + Pid int + Running bool + StartedAt time.Time + func (s *State) GetExitCode() int + func (s *State) IsGhost() bool + func (s *State) IsRunning() bool + func (s *State) SetGhost(val bool) + func (s *State) SetRunning(pid int) + func (s *State) SetStopped(exitCode int) + func (s *State) String() string