Versions in this module Expand all Collapse all v1 v1.13.1 Mar 11, 2020 Changes in this version + const DefaultSHMSize — linux/amd64 + const DefaultStopTimeout + func AttachStreams(ctx context.Context, streamConfig *stream.Config, ...) chan error + func GetSandboxPortMapInfo(sb libnetwork.Sandbox) nat.PortMap + func IsValidHealthString(s string) bool + func IsValidStateString(s string) bool + type CommonContainer struct + Args []string + BaseFS string + Config *containertypes.Config + Created time.Time + Driver string + ExecCommands *exec.Store + HasBeenManuallyStopped bool + HasBeenStartedBefore bool + HostConfig *containertypes.HostConfig + ID string + ImageID image.ID + LogCopier *logger.Copier + LogDriver logger.Logger + LogPath string + Managed bool + MountLabel string + MountPoints map[string]*volume.MountPoint + Name string + NetworkSettings *network.Settings + Path string + ProcessLabel string + RWLayer layer.RWLayer + RestartCount int + Root string + SecretReferences []*swarmtypes.SecretReference + SecretStore agentexec.SecretGetter + StreamConfig *stream.Config + type Container struct — linux/amd64, windows/amd64 + AppArmorProfile string + HostnamePath string + HostsPath string + NoNewPrivileges bool + ResolvConfPath string + SeccompProfile string + ShmPath string + func NewBaseContainer(id, root string) *Container + func (container *Container) AddMountPointWithVolume(destination string, vol volume.Volume, rw bool) + func (container *Container) Attach(stdin io.ReadCloser, stdout io.Writer, stderr io.Writer, keys []byte) chan error + func (container *Container) BuildCreateEndpointOptions(n libnetwork.Network, epConfig *networktypes.EndpointSettings, ...) ([]libnetwork.EndpointOption, error) + func (container *Container) BuildEndpointInfo(n libnetwork.Network, ep libnetwork.Endpoint) error + func (container *Container) BuildHostnameFile() error + func (container *Container) BuildJoinOptions(n libnetwork.Network) ([]libnetwork.EndpointOption, error) + func (container *Container) CancelAttachContext() + func (container *Container) CheckpointDir() string + func (container *Container) CloseStreams() error + func (container *Container) ConfigPath() (string, error) + func (container *Container) CopyImagePathContent(v volume.Volume, destination string) error + func (container *Container) CreateDaemonEnvironment(_ bool, linkedEnv []string) []string + func (container *Container) CreateDaemonEnvironment(tty bool, linkedEnv []string) []string + func (container *Container) DetachAndUnmount(volumeEventLog func(name, action string, attributes map[string]string)) error + func (container *Container) EnableServiceDiscoveryOnDefaultNetwork() bool + func (container *Container) ExitOnNext() + func (container *Container) FromDisk() error + func (container *Container) FullHostname() string + func (container *Container) GetEndpointInNetwork(n libnetwork.Network) (libnetwork.Endpoint, error) + func (container *Container) GetExecIDs() []string + func (container *Container) GetMountLabel() string + func (container *Container) GetProcessLabel() string + func (container *Container) GetResourcePath(path string) (string, error) + func (container *Container) GetRootResourcePath(path string) (string, error) + func (container *Container) HasMountFor(path string) bool + func (container *Container) HostConfigPath() (string, error) + func (container *Container) InitAttachContext() context.Context + func (container *Container) InitDNSHostConfig() + func (container *Container) InitializeStdio(iop libcontainerd.IOPipe) error + func (container *Container) IpcMounts() []Mount + func (container *Container) IsDestinationMounted(destination string) bool + func (container *Container) NetworkMounts() []Mount + func (container *Container) Reset(lock bool) + func (container *Container) ResetRestartManager(resetCount bool) + func (container *Container) ResolvePath(path string) (resolvedPath, absPath string, err error) + func (container *Container) RestartManager() restartmanager.RestartManager + func (container *Container) SecretMount() *Mount + func (container *Container) SecretMountPath() string + func (container *Container) SetupWorkingDirectory(rootUID, rootGID int) error + func (container *Container) ShmResourcePath() (string, error) + func (container *Container) ShouldRestart() bool + func (container *Container) StartLogger(cfg containertypes.LogConfig) (logger.Logger, error) + func (container *Container) StatPath(resolvedPath, absPath string) (stat *types.ContainerPathStat, err error) + func (container *Container) StderrPipe() io.ReadCloser + func (container *Container) StdinPipe() io.WriteCloser + func (container *Container) StdoutPipe() io.ReadCloser + func (container *Container) StopSignal() int + func (container *Container) StopTimeout() int + func (container *Container) TmpfsMounts() ([]Mount, error) + func (container *Container) ToDisk() error + func (container *Container) ToDiskLocking() error + func (container *Container) TrySetNetworkMount(destination string, path string) bool + func (container *Container) UnmountIpcMounts(unmount func(pth string) error) + func (container *Container) UnmountSecrets() error + func (container *Container) UnmountVolumes(volumeEventLog func(name, action string, attributes map[string]string)) error + func (container *Container) UpdateContainer(hostConfig *containertypes.HostConfig) error + func (container *Container) UpdateJoinInfo(n libnetwork.Network, ep libnetwork.Endpoint) error + func (container *Container) UpdateMonitor(restartPolicy containertypes.RestartPolicy) + func (container *Container) UpdateSandboxNetworkSettings(sb libnetwork.Sandbox) error + func (container *Container) WriteHostConfig() error + type DetachError struct + func (DetachError) Error() string + type ExitStatus struct — linux/amd64, windows/amd64 + ExitCode int + OOMKilled bool + type Health struct + func (s *Health) CloseMonitorChannel() + func (s *Health) OpenMonitorChannel() chan struct{} + func (s *Health) String() string + type History []*Container + func (history *History) Len() int + func (history *History) Less(i, j int) bool + func (history *History) Swap(i, j int) + type Mount struct + Data string + Destination string + Propagation string + Source string + Writable bool + type State struct + Dead bool + ErrorMsg string + ExitCodeValue int + FinishedAt time.Time + Health *Health + OOMKilled bool + Paused bool + Pid int + RemovalInProgress bool + Restarting bool + Running bool + StartedAt time.Time + func NewState() *State + func (s *State) Error() string + func (s *State) ExitCode() int + func (s *State) GetPID() int + func (s *State) HealthString() string + func (s *State) IsPaused() bool + func (s *State) IsRestarting() bool + func (s *State) IsRunning() bool + func (s *State) ResetRemovalInProgress() + func (s *State) SetDead() + func (s *State) SetError(err error) + func (s *State) SetExitCode(ec int) + func (s *State) SetRemovalInProgress() bool + func (s *State) SetRestarting(exitStatus *ExitStatus) + func (s *State) SetRunning(pid int, initial bool) + func (s *State) SetStopped(exitStatus *ExitStatus) + func (s *State) StateString() string + func (s *State) String() string + func (s *State) WaitStop(timeout time.Duration) (int, error) + func (s *State) WaitWithContext(ctx context.Context) error + type StateStatus struct + func (ss *StateStatus) Error() string + func (ss *StateStatus) ExitCode() int + type Store interface + Add func(string, *Container) + ApplyAll func(StoreReducer) + Delete func(string) + First func(StoreFilter) *Container + Get func(string) *Container + List func() []*Container + Size func() int + func NewMemoryStore() Store + type StoreFilter func(*Container) bool + type StoreReducer func(*Container)