daemon
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package daemon exposes the functions that occur on the host serverthat the Docker daemon is running.
In implementing the various functions of the daemon, there is oftena method-specific struct for configuring the runtime behavior.
Index¶
- func CreateDaemonRoot(config *config.Config) error
- func DefaultApparmorProfile() string
- func LoadOrCreateID(root string) (string, error)
- func RegisterCDIDriver(cdiSpecDirs ...string) *cdi.Cache
- func RemapContainerdNamespaces(config *config.Config) (ns string, pluginNs string, err error)
- func Rootless(cfg *config.Config) bool
- func UsingSystemd(config *config.Config) bool
- func WithApparmor(c *container.Container) coci.SpecOpts
- func WithCapabilities(ctr *container.Container) coci.SpecOpts
- func WithConsoleSize(c *container.Container) coci.SpecOpts
- func WithDevices(daemon *Daemon, c *container.Container) coci.SpecOpts
- func WithNamespaces(daemon *Daemon, c *container.Container) coci.SpecOpts
- func WithOOMScore(score *int) coci.SpecOpts
- func WithResources(c *container.Container) coci.SpecOpts
- func WithSeccomp(daemon *Daemon, c *container.Container) coci.SpecOpts
- func WithSelinux(c *container.Container) coci.SpecOpts
- func WithSysctls(c *container.Container) coci.SpecOpts
- func WithUser(c *container.Container) coci.SpecOpts
- type Cluster
- type ClusterStatus
- type Daemon
- func (daemon *Daemon) ActivateContainerServiceBinding(containerName string) error
- func (daemon *Daemon) AuthenticateToRegistry(ctx context.Context, authConfig *registry.AuthConfig) (string, error)
- func (daemon *Daemon) BuilderBackend() builder.Backend
- func (daemon *Daemon) CheckpointCreate(name string, config checkpoint.CreateRequest) error
- func (daemon *Daemon) CheckpointDelete(name string, config backend.CheckpointDeleteOptions) error
- func (daemon *Daemon) CheckpointList(name string, config backend.CheckpointListOptions) ([]checkpoint.Summary, error)
- func (daemon *Daemon) Cleanup(ctx context.Context, container *container.Container)
- func (daemon *Daemon) Config() config.Config
- func (daemon *Daemon) ConnectContainerToNetwork(ctx context.Context, containerName, networkName string, ...) error
- func (daemon *Daemon) ConnectToNetwork(ctx context.Context, ctr *container.Container, idOrName string, ...) error
- func (daemon *Daemon) ContainerArchivePath(name string, path string) (content io.ReadCloser, stat *container.PathStat, _ error)
- func (daemon *Daemon) ContainerAttach(prefixOrName string, req *backend.ContainerAttachConfig) error
- func (daemon *Daemon) ContainerAttachRaw(prefixOrName string, stdin io.ReadCloser, stdout, stderr io.Writer, ...) error
- func (daemon *Daemon) ContainerChanges(ctx context.Context, name string) ([]archive.Change, error)
- func (daemon *Daemon) ContainerCreate(ctx context.Context, params backend.ContainerCreateConfig) (containertypes.CreateResponse, error)
- func (daemon *Daemon) ContainerCreateIgnoreImagesArgsEscaped(ctx context.Context, params backend.ContainerCreateConfig) (containertypes.CreateResponse, error)
- func (daemon *Daemon) ContainerCreateWorkdir(cID string) error
- func (daemon *Daemon) ContainerExecCreate(name string, options *containertypes.ExecCreateRequest) (string, error)
- func (daemon *Daemon) ContainerExecInspect(id string) (*containertypes.ExecInspectResponse, error)
- func (daemon *Daemon) ContainerExecResize(ctx context.Context, name string, height, width uint32) error
- func (daemon *Daemon) ContainerExecStart(ctx context.Context, name string, options backend.ExecStartConfig) (retErr error)
- func (daemon *Daemon) ContainerExport(ctx context.Context, name string, out io.Writer) error
- func (daemon *Daemon) ContainerExtractToDir(name, path string, copyUIDGID, allowOverwriteDirWithFile bool, ...) error
- func (daemon *Daemon) ContainerInspect(ctx context.Context, name string, options backend.ContainerInspectOptions) (_ *containertypes.InspectResponse, desiredMACAddress networktypes.HardwareAddr, ...)
- func (daemon *Daemon) ContainerKill(name, stopSignal string) error
- func (daemon *Daemon) ContainerLogs(ctx context.Context, containerName string, ...) (messages <-chan *backend.LogMessage, isTTY bool, retErr error)
- func (daemon *Daemon) ContainerPause(name string) error
- func (daemon *Daemon) ContainerPrune(ctx context.Context, pruneFilters filters.Args) (*container.PruneReport, error)
- func (daemon *Daemon) ContainerRename(oldName, newName string) (retErr error)
- func (daemon *Daemon) ContainerResize(ctx context.Context, name string, height, width uint32) error
- func (daemon *Daemon) ContainerRestart(ctx context.Context, name string, options backend.ContainerStopOptions) error
- func (daemon *Daemon) ContainerRm(name string, config *backend.ContainerRmConfig) error
- func (daemon *Daemon) ContainerStart(ctx context.Context, name string, checkpoint string, checkpointDir string) error
- func (daemon *Daemon) ContainerStatPath(name string, path string) (*container.PathStat, error)
- func (daemon *Daemon) ContainerStats(ctx context.Context, prefixOrName string, config *backend.ContainerStatsConfig) error
- func (daemon *Daemon) ContainerStop(ctx context.Context, name string, options backend.ContainerStopOptions) error
- func (daemon *Daemon) ContainerTop(name string, psArgs string) (*container.TopResponse, error)
- func (daemon *Daemon) ContainerUnpause(name string) error
- func (daemon *Daemon) ContainerUpdate(name string, hostConfig *container.HostConfig) (container.UpdateResponse, error)
- func (daemon *Daemon) ContainerWait(ctx context.Context, name string, condition containertypes.WaitCondition) (<-chan container.StateStatus, error)
- func (daemon *Daemon) Containers(ctx context.Context, config *backend.ContainerListOptions) ([]containertypes.Summary, error)
- func (daemon *Daemon) CreateImageFromContainer(ctx context.Context, name string, c *backend.CreateImageConfig) (string, error)
- func (daemon *Daemon) CreateManagedContainer(ctx context.Context, params backend.ContainerCreateConfig) (containertypes.CreateResponse, error)
- func (daemon *Daemon) CreateManagedNetwork(create clustertypes.NetworkCreateRequest) error
- func (daemon *Daemon) CreateNetwork(ctx context.Context, create networktypes.CreateRequest) (*networktypes.CreateResponse, error)
- func (daemon *Daemon) DaemonJoinsCluster(clusterProvider cluster.Provider)
- func (daemon *Daemon) DaemonLeavesCluster()
- func (daemon *Daemon) DeactivateContainerServiceBinding(containerName string) error
- func (daemon *Daemon) DefaultIsolation() containertypes.Isolation
- func (daemon *Daemon) DeleteManagedNetwork(networkID string) error
- func (daemon *Daemon) DeleteNetwork(networkID string) error
- func (daemon *Daemon) DisconnectContainerFromNetwork(containerName string, networkName string, force bool) error
- func (daemon *Daemon) DisconnectFromNetwork(ctx context.Context, ctr *container.Container, networkName string, force bool) error
- func (daemon *Daemon) DistributionServices() images.DistributionServices
- func (daemon *Daemon) ExecExists(name string) (bool, error)
- func (daemon *Daemon) Features() map[string]bool
- func (daemon *Daemon) FindNetwork(term string) (*libnetwork.Network, error)
- func (daemon *Daemon) ForceEndpointDelete(name string, networkName string) error
- func (daemon *Daemon) GetAttachmentStore() *network.AttachmentStore
- func (daemon *Daemon) GetByName(name string) (*container.Container, error)
- func (daemon *Daemon) GetCluster() Cluster
- func (daemon *Daemon) GetContainer(prefixOrName string) (*container.Container, error)
- func (daemon *Daemon) GetContainerStats(ctr *container.Container) (*containertypes.StatsResponse, error)
- func (daemon *Daemon) GetDependentContainers(c *container.Container) []*container.Container
- func (daemon *Daemon) GetNetworkByID(id string) (*libnetwork.Network, error)
- func (daemon *Daemon) GetNetworkByName(name string) (*libnetwork.Network, error)
- func (daemon *Daemon) GetNetworkDriverList(ctx context.Context) []string
- func (daemon *Daemon) GetNetworkSummaries(filter network.Filter) ([]networktypes.Summary, error)
- func (daemon *Daemon) GetNetworks(filter network.Filter, config backend.NetworkListConfig) ([]networktypes.Inspect, error)
- func (daemon *Daemon) GetNetworksByIDPrefix(partialID string) []*libnetwork.Network
- func (daemon *Daemon) HasExperimental() bool
- func (daemon *Daemon) ID() string
- func (daemon *Daemon) IdentityMapping() user.IdentityMapping
- func (daemon *Daemon) ImageBackend() executorpkg.ImageBackend
- func (daemon *Daemon) ImageExportedByBuildkit(ctx context.Context, id string, desc ocispec.Descriptor)
- func (daemon *Daemon) ImageNamedByBuildkit(ctx context.Context, ref reference.NamedTagged, desc ocispec.Descriptor)
- func (daemon *Daemon) ImageService() ImageService
- func (daemon *Daemon) IsShuttingDown() bool
- func (daemon *Daemon) IsSwarmCompatible() error
- func (daemon *Daemon) Kill(container *containerpkg.Container) error
- func (daemon *Daemon) List() []*container.Container
- func (daemon *Daemon) LogContainerEvent(container *container.Container, action events.Action)
- func (daemon *Daemon) LogContainerEventWithAttributes(container *container.Container, action events.Action, ...)
- func (daemon *Daemon) LogDaemonEventWithAttributes(action events.Action, attributes map[string]string)
- func (daemon *Daemon) LogNetworkEvent(nw *libnetwork.Network, action events.Action)
- func (daemon *Daemon) LogNetworkEventWithAttributes(nw *libnetwork.Network, action events.Action, attributes map[string]string)
- func (daemon *Daemon) LogPluginEvent(pluginID, refName string, action events.Action)
- func (daemon *Daemon) LogVolumeEvent(volumeID string, action events.Action, attributes map[string]string)
- func (daemon *Daemon) Mount(container *container.Container) error
- func (daemon *Daemon) NetworkController() *libnetwork.Controller
- func (daemon *Daemon) NetworkPrune(ctx context.Context, filterArgs filters.Args) (*network.PruneReport, error)
- func (daemon *Daemon) PluginGetter() *plugin.Store
- func (daemon *Daemon) PluginManager() *plugin.Manager
- func (daemon *Daemon) ProcessClusterNotifications(ctx context.Context, watchStream chan *swarmapi.WatchMessage)
- func (daemon *Daemon) ProcessEvent(id string, e libcontainerdtypes.EventType, ei libcontainerdtypes.EventInfo) error
- func (daemon *Daemon) RawSysInfo() *sysinfo.SysInfo
- func (daemon *Daemon) RegistryHosts(host string) ([]docker.RegistryHost, error)
- func (daemon *Daemon) RegistryService() *registry.Service
- func (daemon *Daemon) ReleaseIngress() (<-chan struct{}, error)
- func (daemon *Daemon) Reload(conf *config.Config) error
- func (daemon *Daemon) RestartSwarmContainers()
- func (daemon *Daemon) SetCluster(cluster Cluster)
- func (daemon *Daemon) SetContainerConfigReferences(name string, refs []*swarmtypes.ConfigReference) error
- func (daemon *Daemon) SetContainerDependencyStore(name string, store exec.DependencyGetter) error
- func (daemon *Daemon) SetContainerSecretReferences(name string, refs []*swarmtypes.SecretReference) error
- func (daemon *Daemon) SetNetworkBootstrapKeys(keys []*lntypes.EncryptionKey) error
- func (daemon *Daemon) SetupIngress(create clustertypes.NetworkCreateRequest, nodeIP string) (<-chan struct{}, error)
- func (daemon *Daemon) Shutdown(ctx context.Context) error
- func (daemon *Daemon) ShutdownTimeout() int
- func (daemon *Daemon) StoreHosts(hosts []string)
- func (daemon *Daemon) Subnets() ([]net.IPNet, []net.IPNet)
- func (daemon *Daemon) SubscribeToEvents(since, until time.Time, filter filters.Args) ([]events.Message, chan any)
- func (daemon *Daemon) SystemDiskUsage(ctx context.Context, opts backend.DiskUsageOptions) (*backend.DiskUsage, error)
- func (daemon *Daemon) SystemInfo(ctx context.Context) (*system.Info, error)
- func (daemon *Daemon) SystemVersion(ctx context.Context) (system.VersionResponse, error)
- func (daemon *Daemon) Unmount(container *container.Container) error
- func (daemon *Daemon) UnsubscribeFromEvents(listener chan any)
- func (daemon *Daemon) UpdateAttachment(networkName, networkID, containerID string, ...) error
- func (daemon *Daemon) UpdateContainerServiceConfig(containerName string, serviceConfig *clustertypes.ServiceConfig) error
- func (daemon *Daemon) UsesSnapshotter() bool
- func (daemon *Daemon) VolumesService() *service.VolumesService
- func (daemon *Daemon) WaitForDetachment(ctx context.Context, networkName, networkID, taskID, containerID string) error
- type ImageService
- type NetworkManager
- type PredefinedNetworkError
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcCreateDaemonRoot¶
CreateDaemonRoot creates the root for the daemon
funcDefaultApparmorProfile¶
func DefaultApparmorProfile()string
DefaultApparmorProfile returns the name of the default apparmor profile
funcLoadOrCreateID¶
LoadOrCreateID loads the engine's ID from the given root, or generates a new IDif it doesn't exist. It returns the ID, and any error that occurred whensaving the file.
Note that this function expects the daemon's root directory to already havebeen created with the right permissions and ownership (usually this wouldbe done by daemon.CreateDaemonRoot().
funcRegisterCDIDriver¶
RegisterCDIDriver registers the CDI device driver.The driver injects CDI devices into an incoming OCI spec and is called for DeviceRequests associated with CDI devices.If the list of CDI spec directories is empty, the driver is not registered.
funcRemapContainerdNamespaces¶
RemapContainerdNamespaces returns the right containerd namespaces to use:- if they are not already set in the config file- and the daemon is running with user namespace remapping enabledThen it will return new namespace names, otherwise it will return the existingnamespaces
funcUsingSystemd¶
UsingSystemd returns true if cli option includes native.cgroupdriver=systemd
funcWithApparmor¶
WithApparmor sets the apparmor profile
funcWithCapabilities¶
WithCapabilities adjusts the container's capabilities based on the"CapAdd", "CapDrop", and "Privileged" fields in the container's HostConfig.
funcWithConsoleSize¶
WithConsoleSize sets the initial console size
funcWithDevices¶
WithDevices sets the container's devices
funcWithNamespaces¶
WithNamespaces sets the container's namespaces
funcWithResources¶
WithResources applies the container resources
funcWithSeccomp¶
WithSeccomp sets the seccomp profile
funcWithSelinux¶
WithSelinux sets the selinux labels
funcWithSysctls¶
WithSysctls sets the container's sysctls
Types¶
typeCluster¶
type Cluster interface {ClusterStatusNetworkManagerSendClusterEvent(eventlncluster.ConfigEventType)}Cluster is the interface forgithub.com/moby/moby/v2/daemon/cluster.Cluster.
typeClusterStatus¶
ClusterStatus interface provides information about the Swarm status of the Cluster
typeDaemon¶
type Daemon struct {EventsService *events.EventsPluginStore *plugin.Store// TODO: removeReferenceStorerefstore.StoreCDICache *cdi.Cache// contains filtered or unexported fields}Daemon holds information about the Docker daemon.
funcNewDaemon¶
func NewDaemon(ctxcontext.Context, config *config.Config, pluginStore *plugin.Store, authzMiddleware *authorization.Middleware) (_ *Daemon, retErrerror)
NewDaemon sets up everything for the daemon to be able to servicerequests from the webserver.
func (*Daemon)ActivateContainerServiceBinding¶
ActivateContainerServiceBinding puts this container into load balancer active rotation and DNS response
func (*Daemon)AuthenticateToRegistry¶
func (daemon *Daemon) AuthenticateToRegistry(ctxcontext.Context, authConfig *registry.AuthConfig) (string,error)
AuthenticateToRegistry checks the validity of credentials in authConfig
func (*Daemon)BuilderBackend¶
BuilderBackend returns the backend used by builder
func (*Daemon)CheckpointCreate¶
func (daemon *Daemon) CheckpointCreate(namestring, configcheckpoint.CreateRequest)error
CheckpointCreate checkpoints the process running in a container with CRIU
func (*Daemon)CheckpointDelete¶
func (daemon *Daemon) CheckpointDelete(namestring, configbackend.CheckpointDeleteOptions)error
CheckpointDelete deletes the specified checkpoint
func (*Daemon)CheckpointList¶
func (daemon *Daemon) CheckpointList(namestring, configbackend.CheckpointListOptions) ([]checkpoint.Summary,error)
CheckpointList lists all checkpoints of the specified container
func (*Daemon)Cleanup¶
Cleanup releases any network resources allocated to the container along with any rulesaround how containers are linked together. It also unmounts the container's root filesystem.
func (*Daemon)ConnectContainerToNetwork¶
func (daemon *Daemon) ConnectContainerToNetwork(ctxcontext.Context, containerName, networkNamestring, endpointConfig *networktypes.EndpointSettings)error
ConnectContainerToNetwork connects the given container to the givennetwork. If either cannot be found, an err is returned. If thenetwork cannot be set up, an err is returned.
func (*Daemon)ConnectToNetwork¶
func (daemon *Daemon) ConnectToNetwork(ctxcontext.Context, ctr *container.Container, idOrNamestring, endpointConfig *networktypes.EndpointSettings)error
ConnectToNetwork connects a container to a network
func (*Daemon)ContainerArchivePath¶
func (daemon *Daemon) ContainerArchivePath(namestring, pathstring) (contentio.ReadCloser, stat *container.PathStat, _error)
ContainerArchivePath creates an archive of the filesystem resource at thespecified path in the container identified by the given name. Returns atar archive of the resource and whether it was a directory or a single file.
func (*Daemon)ContainerAttach¶
func (daemon *Daemon) ContainerAttach(prefixOrNamestring, req *backend.ContainerAttachConfig)error
ContainerAttach attaches to logs according to the config passed in. See ContainerAttachConfig.
func (*Daemon)ContainerAttachRaw¶
func (daemon *Daemon) ContainerAttachRaw(prefixOrNamestring, stdinio.ReadCloser, stdout, stderrio.Writer, doStreambool, attached chan struct{})error
ContainerAttachRaw attaches the provided streams to the container's stdio
func (*Daemon)ContainerChanges¶
ContainerChanges returns a list of container fs changes
func (*Daemon)ContainerCreate¶
func (daemon *Daemon) ContainerCreate(ctxcontext.Context, paramsbackend.ContainerCreateConfig) (containertypes.CreateResponse,error)
ContainerCreate creates a regular container
func (*Daemon)ContainerCreateIgnoreImagesArgsEscaped¶
func (daemon *Daemon) ContainerCreateIgnoreImagesArgsEscaped(ctxcontext.Context, paramsbackend.ContainerCreateConfig) (containertypes.CreateResponse,error)
ContainerCreateIgnoreImagesArgsEscaped creates a regular container. This is called from the builder RUN caseand ensures that we do not take the images ArgsEscaped
func (*Daemon)ContainerCreateWorkdir¶
ContainerCreateWorkdir creates the working directory. This solves theissue arising fromhttps://github.com/moby/moby/issues/27545,which was initially fixed byhttps://github.com/moby/moby/pull/27884. But that fixwas too expensive in terms of performance on Windows. Instead,https://github.com/moby/moby/pull/28514 introduces this new functionalitywhere the builder calls into the backend here to create the working directory.
func (*Daemon)ContainerExecCreate¶
func (daemon *Daemon) ContainerExecCreate(namestring, options *containertypes.ExecCreateRequest) (string,error)
ContainerExecCreate sets up an exec in a running container.
func (*Daemon)ContainerExecInspect¶
func (daemon *Daemon) ContainerExecInspect(idstring) (*containertypes.ExecInspectResponse,error)
ContainerExecInspect returns low-level information about the execcommand. An error is returned if the exec cannot be found.
func (*Daemon)ContainerExecResize¶
ContainerExecResize changes the size of the TTY of the processrunning in the exec with the given name to the given height andwidth.
func (*Daemon)ContainerExecStart¶
func (daemon *Daemon) ContainerExecStart(ctxcontext.Context, namestring, optionsbackend.ExecStartConfig) (retErrerror)
ContainerExecStart starts a previously set up exec instance. Thestd streams are set up.If ctx is cancelled, the process is terminated.
func (*Daemon)ContainerExport¶
ContainerExport writes the contents of the container to the givenwriter. An error is returned if the container cannot be found.
func (*Daemon)ContainerExtractToDir¶
func (daemon *Daemon) ContainerExtractToDir(name, pathstring, copyUIDGID, allowOverwriteDirWithFilebool, contentio.Reader)error
ContainerExtractToDir extracts the given archive to the specified locationin the filesystem of the container identified by the given name. The givenpath must be of a directory in the container. If it is not, the error willbe an errdefs.InvalidParameter. It returns an error if unpacking the givencontent would cause an existing directory to be replaced with a non-directoryor vice versa, unless allowOverwriteDirWithFile is set to true.
func (*Daemon)ContainerInspect¶
func (daemon *Daemon) ContainerInspect(ctxcontext.Context, namestring, optionsbackend.ContainerInspectOptions) (_ *containertypes.InspectResponse, desiredMACAddressnetworktypes.HardwareAddr, _error)
ContainerInspect returns low-level information about acontainer. Returns an error if the container cannot be found, or ifthere is an error getting the data.
func (*Daemon)ContainerKill¶
ContainerKill sends signal to the containerIf no signal is given, then Kill with SIGKILL and waitfor the container to exit.If a signal is given, then just send it to the container and return.
func (*Daemon)ContainerLogs¶
func (daemon *Daemon) ContainerLogs(ctxcontext.Context, containerNamestring, config *backend.ContainerLogsOptions) (messages <-chan *backend.LogMessage, isTTYbool, retErrerror)
ContainerLogs copies the container's log channel to the channel provided inthe config. If ContainerLogs returns an error, no messages have been copied.and the channel will be closed without data.
if it returns nil, the config channel will be active and return logmessages until it runs out or the context is canceled.
func (*Daemon)ContainerPause¶
ContainerPause pauses a container
func (*Daemon)ContainerPrune¶
func (daemon *Daemon) ContainerPrune(ctxcontext.Context, pruneFiltersfilters.Args) (*container.PruneReport,error)
ContainerPrune removes unused containers
func (*Daemon)ContainerRename¶
ContainerRename changes the name of a container, using the oldNameto find the container. An error is returned if newName is alreadyreserved.
func (*Daemon)ContainerResize¶
ContainerResize changes the size of the TTY of the process runningin the container with the given name to the given height and width.
func (*Daemon)ContainerRestart¶
func (daemon *Daemon) ContainerRestart(ctxcontext.Context, namestring, optionsbackend.ContainerStopOptions)error
ContainerRestart stops and starts a container. It attempts togracefully stop the container within the given timeout, forcefullystopping it if the timeout is exceeded. If given a negativetimeout, ContainerRestart will wait forever until a gracefulstop. Returns an error if the container cannot be found, or ifthere is an underlying error at any stage of the restart.
func (*Daemon)ContainerRm¶
func (daemon *Daemon) ContainerRm(namestring, config *backend.ContainerRmConfig)error
ContainerRm removes the container id from the filesystem. An erroris returned if the container is not found, or if the removefails. If the remove succeeds, the container name is released, andnetwork links are removed.
func (*Daemon)ContainerStart¶
func (daemon *Daemon) ContainerStart(ctxcontext.Context, namestring, checkpointstring, checkpointDirstring)error
ContainerStart starts a container.
func (*Daemon)ContainerStatPath¶
ContainerStatPath stats the filesystem resource at the specified path in thecontainer identified by the given name.
func (*Daemon)ContainerStats¶
func (daemon *Daemon) ContainerStats(ctxcontext.Context, prefixOrNamestring, config *backend.ContainerStatsConfig)error
ContainerStats writes information about the container to the streamgiven in the config object.
func (*Daemon)ContainerStop¶
func (daemon *Daemon) ContainerStop(ctxcontext.Context, namestring, optionsbackend.ContainerStopOptions)error
ContainerStop looks for the given container and stops it.In case the container fails to stop gracefully within a time durationspecified by the timeout argument, in seconds, it is forcefullyterminated (killed).
If the timeout is nil, the container's StopTimeout value is used, if set,otherwise the engine default. A negative timeout value can be specified,meaning no timeout, i.e. no forceful termination is performed.
func (*Daemon)ContainerTop¶
ContainerTop lists the processes running inside of the givencontainer by calling ps with the given args, or with the flags"-ef" if no args are given. An error is returned if the containeris not found, or is not running, or if there are any problemsrunning ps, or parsing the output.
func (*Daemon)ContainerUnpause¶
ContainerUnpause unpauses a container
func (*Daemon)ContainerUpdate¶
func (daemon *Daemon) ContainerUpdate(namestring, hostConfig *container.HostConfig) (container.UpdateResponse,error)
ContainerUpdate updates configuration of the container
func (*Daemon)ContainerWait¶
func (daemon *Daemon) ContainerWait(ctxcontext.Context, namestring, conditioncontainertypes.WaitCondition) (<-chancontainer.StateStatus,error)
ContainerWait waits until the given container is in a certain stateindicated by the given condition. If the container is not found, a nilchannel and non-nil error is returned immediately. If the container isfound, a status result will be sent on the returned channel once the waitcondition is met or if an error occurs waiting for the container (such as acontext timeout or cancellation). On a successful wait, the exit code of thecontainer is returned in the status with a non-nil Err() value.
func (*Daemon)Containers¶
func (daemon *Daemon) Containers(ctxcontext.Context, config *backend.ContainerListOptions) ([]containertypes.Summary,error)
Containers returns the list of containers to show given the user's filtering.
func (*Daemon)CreateImageFromContainer¶
func (daemon *Daemon) CreateImageFromContainer(ctxcontext.Context, namestring, c *backend.CreateImageConfig) (string,error)
CreateImageFromContainer creates a new image from a container. The containerconfig will be updated by applying the change set to the custom config, thenapplying that config over the existing container config.
func (*Daemon)CreateManagedContainer¶
func (daemon *Daemon) CreateManagedContainer(ctxcontext.Context, paramsbackend.ContainerCreateConfig) (containertypes.CreateResponse,error)
CreateManagedContainer creates a container that is managed by a Service
func (*Daemon)CreateManagedNetwork¶
func (daemon *Daemon) CreateManagedNetwork(createclustertypes.NetworkCreateRequest)error
CreateManagedNetwork creates an agent network.
func (*Daemon)CreateNetwork¶
func (daemon *Daemon) CreateNetwork(ctxcontext.Context, createnetworktypes.CreateRequest) (*networktypes.CreateResponse,error)
CreateNetwork creates a network with the given name, driver and other optional parameters
func (*Daemon)DaemonJoinsCluster¶
DaemonJoinsCluster informs the daemon has joined the cluster and providesthe handler to query the cluster component
func (*Daemon)DaemonLeavesCluster¶
func (daemon *Daemon) DaemonLeavesCluster()
DaemonLeavesCluster informs the daemon has left the cluster
func (*Daemon)DeactivateContainerServiceBinding¶
DeactivateContainerServiceBinding removes this container from load balancer active rotation, and DNS response
func (*Daemon)DefaultIsolation¶
func (daemon *Daemon) DefaultIsolation()containertypes.Isolation
DefaultIsolation returns the default isolation mode for the daemon to run in (only applicable on Windows).
func (*Daemon)DeleteManagedNetwork¶
DeleteManagedNetwork deletes an agent network.The requirement of networkID is enforced.
func (*Daemon)DeleteNetwork¶
DeleteNetwork destroys a network unless it's one of docker's predefined networks.
func (*Daemon)DisconnectContainerFromNetwork¶
func (daemon *Daemon) DisconnectContainerFromNetwork(containerNamestring, networkNamestring, forcebool)error
DisconnectContainerFromNetwork disconnects the given container fromthe given network. If either cannot be found, an err is returned.
func (*Daemon)DisconnectFromNetwork¶
func (daemon *Daemon) DisconnectFromNetwork(ctxcontext.Context, ctr *container.Container, networkNamestring, forcebool)error
DisconnectFromNetwork disconnects container from network n.
func (*Daemon)DistributionServices¶
func (daemon *Daemon) DistributionServices()images.DistributionServices
DistributionServices returns services controlling daemon storage
func (*Daemon)ExecExists¶
ExecExists looks up the exec instance and returns a bool if it exists or not.It will also return the error produced by `getConfig`
func (*Daemon)FindNetwork¶
func (daemon *Daemon) FindNetwork(termstring) (*libnetwork.Network,error)
FindNetwork returns a network based on:1. Full ID2. Full Name3. Partial IDas long as there is no ambiguity
func (*Daemon)ForceEndpointDelete¶
ForceEndpointDelete deletes an endpoint from a network forcefully
func (*Daemon)GetAttachmentStore¶
func (daemon *Daemon) GetAttachmentStore() *network.AttachmentStore
GetAttachmentStore returns current attachment store associated with the daemon
func (*Daemon)GetContainer¶
GetContainer looks for a container using the provided information, which could beone of the following inputs from the caller:
- A full container ID, which will exact match a container in daemon's list
- A container name, which will only exact match via the GetByName() function
- A partial container ID prefix (e.g. short ID) of any length that isunique enough to only return a single container objectIf none of these searches succeed, an error is returned
func (*Daemon)GetContainerStats¶
func (daemon *Daemon) GetContainerStats(ctr *container.Container) (*containertypes.StatsResponse,error)
GetContainerStats collects all the stats published by a container
func (*Daemon)GetDependentContainers¶
GetDependentContainers returns a list of containers that depend on the given container.Dependencies are determined by:
- Network mode dependencies (--network=container:xxx)
- Legacy container links (--link)
This is primarily used during daemon startup to determine container startup order,ensuring that dependent containers are started after their dependencies are running.Upon error, it returns the last known dependent containers, which may be empty.
func (*Daemon)GetNetworkByID¶
func (daemon *Daemon) GetNetworkByID(idstring) (*libnetwork.Network,error)
GetNetworkByID function returns a network whose ID matches the given ID.It fails with an error if no matching network is found.
func (*Daemon)GetNetworkByName¶
func (daemon *Daemon) GetNetworkByName(namestring) (*libnetwork.Network,error)
GetNetworkByName function returns a network for a given network name.If no network name is given, the default network is returned.
func (*Daemon)GetNetworkDriverList¶
GetNetworkDriverList returns the list of plugins driversregistered for network.
func (*Daemon)GetNetworkSummaries¶
func (*Daemon)GetNetworks¶
func (daemon *Daemon) GetNetworks(filternetwork.Filter, configbackend.NetworkListConfig) ([]networktypes.Inspect,error)
GetNetworks returns a list of all networks
func (*Daemon)GetNetworksByIDPrefix¶
func (daemon *Daemon) GetNetworksByIDPrefix(partialIDstring) []*libnetwork.Network
GetNetworksByIDPrefix returns a list of networks whose ID partially matches zero or more networks
func (*Daemon)HasExperimental¶
HasExperimental returns whether the experimental features of the daemon are enabled or not
func (*Daemon)IdentityMapping¶
func (daemon *Daemon) IdentityMapping()user.IdentityMapping
IdentityMapping returns uid/gid mapping or a SID (in the case of Windows) for the builder
func (*Daemon)ImageBackend¶
func (daemon *Daemon) ImageBackend()executorpkg.ImageBackend
ImageBackend returns an image-backend for Swarm and the distribution router.
func (*Daemon)ImageExportedByBuildkit¶
ImageExportedByBuildkit is a callback that is called when an image is exported by buildkit.This is used to log the image creation event for untagged images.When no tag is given, buildkit doesn't call the image service so it has noway of knowing the image was created.
func (*Daemon)ImageNamedByBuildkit¶
func (daemon *Daemon) ImageNamedByBuildkit(ctxcontext.Context, refreference.NamedTagged, descocispec.Descriptor)
ImageNamedByBuildkit is a callback that is called when an image is tagged by buildkit.Note: It is only called if the buildkit didn't call the image service itself to perform the tagging.Currently this only happens when the containerd image store is used.
func (*Daemon)ImageService¶
func (daemon *Daemon) ImageService()ImageService
ImageService returns the Daemon's ImageService
func (*Daemon)IsShuttingDown¶
IsShuttingDown tells whether the daemon is shutting down or not
func (*Daemon)IsSwarmCompatible¶
IsSwarmCompatible verifies if the current daemonconfiguration is compatible with the swarm mode
func (*Daemon)Kill¶
func (daemon *Daemon) Kill(container *containerpkg.Container)error
Kill forcefully terminates a container.
func (*Daemon)LogContainerEvent¶
LogContainerEvent generates an event related to a container with only the default attributes.
func (*Daemon)LogContainerEventWithAttributes¶
func (daemon *Daemon) LogContainerEventWithAttributes(container *container.Container, actionevents.Action, attributes map[string]string)
LogContainerEventWithAttributes generates an event related to a container with specific given attributes.
func (*Daemon)LogDaemonEventWithAttributes¶
func (daemon *Daemon) LogDaemonEventWithAttributes(actionevents.Action, attributes map[string]string)
LogDaemonEventWithAttributes generates an event related to the daemon itself with specific given attributes.
func (*Daemon)LogNetworkEvent¶
func (daemon *Daemon) LogNetworkEvent(nw *libnetwork.Network, actionevents.Action)
LogNetworkEvent generates an event related to a network with only the default attributes.
func (*Daemon)LogNetworkEventWithAttributes¶
func (daemon *Daemon) LogNetworkEventWithAttributes(nw *libnetwork.Network, actionevents.Action, attributes map[string]string)
LogNetworkEventWithAttributes generates an event related to a network with specific given attributes.
func (*Daemon)LogPluginEvent¶
LogPluginEvent generates an event related to a plugin with only the default attributes.
func (*Daemon)LogVolumeEvent¶
func (daemon *Daemon) LogVolumeEvent(volumeIDstring, actionevents.Action, attributes map[string]string)
LogVolumeEvent generates an event related to a volume.
func (*Daemon)NetworkController¶
func (daemon *Daemon) NetworkController() *libnetwork.Controller
NetworkController returns the network controller created by the daemon.
func (*Daemon)NetworkPrune¶
func (daemon *Daemon) NetworkPrune(ctxcontext.Context, filterArgsfilters.Args) (*network.PruneReport,error)
NetworkPrune removes unused networks
func (*Daemon)PluginGetter¶
PluginGetter returns current pluginStore associated with the daemon
func (*Daemon)PluginManager¶
PluginManager returns current pluginManager associated with the daemon
func (*Daemon)ProcessClusterNotifications¶
func (daemon *Daemon) ProcessClusterNotifications(ctxcontext.Context, watchStream chan *swarmapi.WatchMessage)
ProcessClusterNotifications gets changes from store and add them to event list
func (*Daemon)ProcessEvent¶
func (daemon *Daemon) ProcessEvent(idstring, elibcontainerdtypes.EventType, eilibcontainerdtypes.EventInfo)error
ProcessEvent is called by libcontainerd whenever an event occurs
func (*Daemon)RawSysInfo¶
RawSysInfo returns *sysinfo.SysInfo .
func (*Daemon)RegistryHosts¶
func (daemon *Daemon) RegistryHosts(hoststring) ([]docker.RegistryHost,error)
RegistryHosts returns the registry hosts configuration for the host componentof a distribution image reference.
func (*Daemon)RegistryService¶
RegistryService returns the Daemon's RegistryService
func (*Daemon)ReleaseIngress¶
ReleaseIngress releases the ingress networking.The function returns a channel which will signal the caller when the programming is completed.
func (*Daemon)Reload¶
Reload modifies the live daemon configuration from conf.conf is assumed to be a validated configuration.
These are the settings that Reload changes:- Platform runtime- Daemon debug log level- Daemon max concurrent downloads- Daemon max concurrent uploads- Daemon max download attempts- Daemon shutdown timeout (in seconds)- Cluster discovery (reconfigure and restart)- Daemon labels- Insecure registries- Registry mirrors- Daemon live restore
func (*Daemon)RestartSwarmContainers¶
func (daemon *Daemon) RestartSwarmContainers()
RestartSwarmContainers restarts any autostart container which has aswarm endpoint.
func (*Daemon)SetCluster¶
SetCluster sets the cluster
func (*Daemon)SetContainerConfigReferences¶
func (daemon *Daemon) SetContainerConfigReferences(namestring, refs []*swarmtypes.ConfigReference)error
SetContainerConfigReferences sets the container config references needed
func (*Daemon)SetContainerDependencyStore¶
func (daemon *Daemon) SetContainerDependencyStore(namestring, storeexec.DependencyGetter)error
SetContainerDependencyStore sets the dependency store backend for the container
func (*Daemon)SetContainerSecretReferences¶
func (daemon *Daemon) SetContainerSecretReferences(namestring, refs []*swarmtypes.SecretReference)error
SetContainerSecretReferences sets the container secret references needed
func (*Daemon)SetNetworkBootstrapKeys¶
func (daemon *Daemon) SetNetworkBootstrapKeys(keys []*lntypes.EncryptionKey)error
SetNetworkBootstrapKeys sets the bootstrap keys.
func (*Daemon)SetupIngress¶
func (daemon *Daemon) SetupIngress(createclustertypes.NetworkCreateRequest, nodeIPstring) (<-chan struct{},error)
SetupIngress setups ingress networking.The function returns a channel which will signal the caller when the programming is completed.
func (*Daemon)ShutdownTimeout¶
ShutdownTimeout returns the timeout (in seconds) before containers are forciblykilled during shutdown. The default timeout can be configured both on the daemonand per container, and the longest timeout will be used. A grace-period of5 seconds is added to the configured timeout.
A negative (-1) timeout means "indefinitely", which means that containersare not forcibly killed, and the daemon shuts down after all containers exit.
func (*Daemon)StoreHosts¶
StoreHosts stores the addresses the daemon is listening on
func (*Daemon)Subnets¶
Subnets return the IPv4 and IPv6 subnets of networks that are manager by Docker.
func (*Daemon)SubscribeToEvents¶
func (daemon *Daemon) SubscribeToEvents(since, untiltime.Time, filterfilters.Args) ([]events.Message, chanany)
SubscribeToEvents returns the currently record of events, a channel to stream new events from, and a function to cancel the stream of events.
func (*Daemon)SystemDiskUsage¶
func (daemon *Daemon) SystemDiskUsage(ctxcontext.Context, optsbackend.DiskUsageOptions) (*backend.DiskUsage,error)
SystemDiskUsage returns information about the daemon data disk usage.Callers must not mutate contents of the returned fields.
func (*Daemon)SystemInfo¶
SystemInfo returns information about the host server the daemon is running on.
The only error this should return is due to context cancellation/deadline.Anything else should be logged and ignored because this is looking upmultiple things and is often used for debugging.The only case valid early return is when the caller doesn't want the result anymore (ie context cancelled).
func (*Daemon)SystemVersion¶
SystemVersion returns version information about the daemon.
The only error this should return is due to context cancellation/deadline.Anything else should be logged and ignored because this is looking upmultiple things and is often used for debugging.The only case valid early return is when the caller doesn't want the result anymore (ie context cancelled).
func (*Daemon)UnsubscribeFromEvents¶
UnsubscribeFromEvents stops the event subscription for a client by closing thechannel where the daemon sends events to.
func (*Daemon)UpdateAttachment¶
func (daemon *Daemon) UpdateAttachment(networkName, networkID, containerIDstring, config *networktypes.NetworkingConfig)error
UpdateAttachment notifies the attacher about the attachment config.
func (*Daemon)UpdateContainerServiceConfig¶
func (daemon *Daemon) UpdateContainerServiceConfig(containerNamestring, serviceConfig *clustertypes.ServiceConfig)error
UpdateContainerServiceConfig updates a service configuration.
func (*Daemon)UsesSnapshotter¶
UsesSnapshotter returns true if feature flag to use containerd snapshotter is enabled
func (*Daemon)VolumesService¶
func (daemon *Daemon) VolumesService() *service.VolumesService
VolumesService is used to perform volume operations
typeImageService¶
type ImageService interface {PullImage(ctxcontext.Context, refreference.Named, optionsimagebackend.PullOptions)errorPushImage(ctxcontext.Context, refreference.Named, optionsimagebackend.PushOptions)errorCreateImage(ctxcontext.Context, config []byte, parentstring, contentStoreDigest digest.Digest) (builder.Image,error)ImageDelete(ctxcontext.Context, imageRefstring, optionsimagebackend.RemoveOptions) ([]imagetype.DeleteResponse,error)ExportImage(ctxcontext.Context, names []string, platformList []ocispec.Platform, outStreamio.Writer)errorLoadImage(ctxcontext.Context, inTario.ReadCloser, platformList []ocispec.Platform, outStreamio.Writer, quietbool)errorImages(ctxcontext.Context, optsimagebackend.ListOptions) ([]imagetype.Summary,error)LogImageEvent(ctxcontext.Context, imageID, refNamestring, actionevents.Action)CountImages(ctxcontext.Context)intImagePrune(ctxcontext.Context, pruneFiltersfilters.Args) (*imagetype.PruneReport,error)ImportImage(ctxcontext.Context, refreference.Named, platform *ocispec.Platform, msgstring, layerReaderio.Reader, changes []string) (image.ID,error)TagImage(ctxcontext.Context, imageIDimage.ID, newTagreference.Named)errorGetImage(ctxcontext.Context, refOrIDstring, optionsimagebackend.GetImageOpts) (*image.Image,error)ImageHistory(ctxcontext.Context, namestring, platform *ocispec.Platform) ([]*imagetype.HistoryResponseItem,error)CommitImage(ctxcontext.Context, cbackend.CommitConfig) (image.ID,error)SquashImage(id, parentstring) (string,error)ImageInspect(ctxcontext.Context, refOrIDstring, optsimagebackend.ImageInspectOpts) (*imagebackend.InspectData,error)ImageDiskUsage(ctxcontext.Context) (int64,error)GetImageAndReleasableLayer(ctxcontext.Context, refOrIDstring, optsbuildbackend.GetImageAndLayerOptions) (builder.Image,builder.ROLayer,error)CreateLayer(container *container.Container, initFunclayer.MountInit) (container.RWLayer,error)CreateLayerFromImage(img *image.Image, layerNamestring, rwLayerOpts *layer.CreateRWLayerOpts) (container.RWLayer,error)GetLayerByID(cidstring) (container.RWLayer,error)LayerStoreStatus() [][2]stringGetLayerMountID(cidstring) (string,error)ReleaseLayer(rwlayercontainer.RWLayer)errorGetContainerLayerSize(ctxcontext.Context, containerIDstring) (int64,int64,error)Changes(ctxcontext.Context, container *container.Container) ([]archive.Change,error)GetLayerFolders(img *image.Image, rwLayercontainer.RWLayer, containerIDstring) ([]string,error)MakeImageCache(ctxcontext.Context, cacheFrom []string) (builder.ImageCache,error)CommitBuildStep(ctxcontext.Context, cbackend.CommitConfig) (image.ID,error)DistributionServices()images.DistributionServicesChildren(ctxcontext.Context, idimage.ID) ([]image.ID,error)Cleanup()errorStorageDriver()stringUpdateConfig(maxDownloads, maxUploadsint)}ImageService is a temporary interface to assist in the migration to thecontainerd image-store. This interface should not be considered stable,and may change over time.
typeNetworkManager¶
type NetworkManager interface {GetNetwork(inputstring, withStatusbool) (network.Inspect,error)GetNetworks(filterdnetwork.Filter, withStatusbool) ([]network.Inspect,error)RemoveNetwork(inputstring)error}NetworkManager provides methods to manage networks
typePredefinedNetworkError¶
type PredefinedNetworkErrorstring
PredefinedNetworkError is returned when user tries to create predefined network that already exists.
func (PredefinedNetworkError)Error¶
func (pnrPredefinedNetworkError) Error()string
func (PredefinedNetworkError)Forbidden¶
func (pnrPredefinedNetworkError) Forbidden()
Forbidden denotes the type of this error
Source Files¶
- apparmor_default.go
- archive.go
- archive_tarcopyoptions.go
- archive_tarcopyoptions_unix.go
- archive_unix.go
- attach.go
- auth.go
- build.go
- cdi.go
- changes.go
- checkpoint.go
- cluster.go
- commit.go
- configs.go
- container.go
- container_linux.go
- container_operations.go
- container_operations_unix.go
- containerfs_linux.go
- content.go
- create.go
- create_unix.go
- daemon.go
- daemon_linux.go
- daemon_unix.go
- debugtrap_unix.go
- delete.go
- dependency.go
- devices.go
- devices_amd_linux.go
- devices_nvidia_linux.go
- disk_usage.go
- errors.go
- events.go
- exec.go
- exec_linux.go
- export.go
- health.go
- hosts.go
- id.go
- image_service.go
- image_store_choice.go
- info.go
- info_unix.go
- inspect.go
- inspect_linux.go
- keys.go
- kill.go
- licensing.go
- links.go
- list.go
- list_unix.go
- logdrivers_linux.go
- logs.go
- migration.go
- monitor.go
- mounts.go
- names.go
- network.go
- oci_linux.go
- oci_opts.go
- oci_utils.go
- pause.go
- prune.go
- reload.go
- reload_unix.go
- rename.go
- resize.go
- restart.go
- runtime_unix.go
- seccomp_linux.go
- secrets.go
- start.go
- start_linux.go
- start_unix.go
- stats.go
- stats_collector.go
- stats_unix.go
- stop.go
- top_unix.go
- unpause.go
- update.go
- update_linux.go
- volumes.go
- volumes_linux.go
- volumes_unix.go
- wait.go
- workdir.go
Directories¶
| Path | Synopsis |
|---|---|
Package builder defines interfaces for any Docker builder to implement. | Package builder defines interfaces for any Docker builder to implement. |
dockerfile Package dockerfile is the evaluation step in the Dockerfile parse/evaluate pipeline. | Package dockerfile is the evaluation step in the Dockerfile parse/evaluate pipeline. |
remotecontext/internal/tarsum Package tarsum provides algorithms to perform checksum calculation on filesystem layers. | Package tarsum provides algorithms to perform checksum calculation on filesystem layers. |
remotecontext/urlutil Package urlutil provides helper function to check if a given build-context location should be considered a URL or a remote Git repository. | Package urlutil provides helper function to check if a given build-context location should be considered a URL or a remote Git repository. |
trap/testfilescommand | |
internal | |
capabilities Package capabilities allows to generically handle capabilities. | Package capabilities allows to generically handle capabilities. |
compat Package compat provides tools for backward-compatible API responses. | Package compat provides tools for backward-compatible API responses. |
filters Package filters provides tools for encoding a mapping of keys to a set of multiple values. | Package filters provides tools for encoding a mapping of keys to a set of multiple values. |
layer Package layer is package for managing read-only and read-write mounts on the union file system driver. | Package layer is package for managing read-only and read-write mounts on the union file system driver. |
lazyregexp Package lazyregexp is a thin wrapper over regexp, allowing the use of global regexp variables without forcing them to be compiled at init. | Package lazyregexp is a thin wrapper over regexp, allowing the use of global regexp variables without forcing them to be compiled at init. |
netipstringer Package netipstringer provides utilities to convert netip types to strings which return the empty string for invalid values. | Package netipstringer provides utilities to convert netip types to strings which return the empty string for invalid values. |
streamformatter Package streamformatter provides helper functions to format a stream. | Package streamformatter provides helper functions to format a stream. |
stringid Package stringid provides helper functions for dealing with string identifiers | Package stringid provides helper functions for dealing with string identifiers |
unix_noeintr Package unix_noeintr provides wrappers for unix syscalls that retry on EINTR. | Package unix_noeintr provides wrappers for unix syscalls that retry on EINTR. |
Package libnetwork provides the basic functionality and extension points to create network namespaces and allocate interfaces for containers to use. | Package libnetwork provides the basic functionality and extension points to create network namespaces and allocate interfaces for containers to use. |
bitmap Package bitmap provides a datatype for long vectors of bits. | Package bitmap provides a datatype for long vectors of bits. |
cmd/diagnosticcommand | |
cmd/networkdb-testcommand | |
drivers/bridge/internal/firewaller Package firewaller defines an interface that can be used to manipulate firewall configuration for a bridge network. | Package firewaller defines an interface that can be used to manipulate firewall configuration for a bridge network. |
drivers/overlay/overlayutils Package overlayutils provides utility functions for overlay networks | Package overlayutils provides utility functions for overlay networks |
drivers/remote/api Package api represents all requests and responses suitable for conversation with a remote driver. | Package api represents all requests and responses suitable for conversation with a remote driver. |
internal/addrset Package addrset implements a set of IP addresses. | Package addrset implements a set of IP addresses. |
internal/hashable Package hashable provides handy utility types for making unhashable values hashable. | Package hashable provides handy utility types for making unhashable values hashable. |
internal/modprobe Package modprobe attempts to load kernel modules. | Package modprobe attempts to load kernel modules. |
internal/nftables Package nftables provides methods to create an nftables table and manage its maps, sets, chains, and rules. | Package nftables provides methods to create an nftables table and manage its maps, sets, chains, and rules. |
internal/resolvconf Package resolvconf is used to generate a container's /etc/resolv.conf file. | Package resolvconf is used to generate a container's /etc/resolv.conf file. |
ipamapi Package ipamapi specifies the contract the IPAM service (built-in or remote) needs to satisfy. | Package ipamapi specifies the contract the IPAM service (built-in or remote) needs to satisfy. |
ipams/null Package null implements the null ipam driver. | Package null implements the null ipam driver. |
ipams/remote/api Package api defines the data structure to be used in the request/response messages between libnetwork and the remote ipam plugin | Package api defines the data structure to be used in the request/response messages between libnetwork and the remote ipam plugin |
ipamutils Package ipamutils provides utility functions for ipam management | Package ipamutils provides utility functions for ipam management |
ipbits Package ipbits contains utilities for manipulating netip.Addr values as numbers or bitfields. | Package ipbits contains utilities for manipulating netip.Addr values as numbers or bitfields. |
netutils Package netutils provides network utility functions. | Package netutils provides network utility functions. |
nlwrap Package nlwrap wraps vishvandanda/netlink functions that may return EINTR. | Package nlwrap wraps vishvandanda/netlink functions that may return EINTR. |
options Package options provides a way to pass unstructured sets of options to a component expecting a strongly-typed configuration structure. | Package options provides a way to pass unstructured sets of options to a component expecting a strongly-typed configuration structure. |
osl Package osl describes structures and interfaces which abstract os entities | Package osl describes structures and interfaces which abstract os entities |
resolvconf Package resolvconf provides utility code to get the host's "resolv.conf" path. | Package resolvconf provides utility code to get the host's "resolv.conf" path. |
types Package types contains types that are common across libnetwork project | Package types contains types that are common across libnetwork project |
Package logger defines interfaces that logger drivers implement to log messages. | Package logger defines interfaces that logger drivers implement to log messages. |
awslogs Package awslogs provides the logdriver for forwarding container logs to Amazon CloudWatch Logs | Package awslogs provides the logdriver for forwarding container logs to Amazon CloudWatch Logs |
etwlogs Package etwlogs provides a log driver for forwarding container logs as ETW events.(ETW stands for Event Tracing for Windows) A client can then create an ETW listener to listen for events that are sent by the ETW provider that we register, using the provider's GUID "a3693192-9ed6-46d2-a981-f8226c8363bd". | Package etwlogs provides a log driver for forwarding container logs as ETW events.(ETW stands for Event Tracing for Windows) A client can then create an ETW listener to listen for events that are sent by the ETW provider that we register, using the provider's GUID "a3693192-9ed6-46d2-a981-f8226c8363bd". |
fluentd Package fluentd provides the log driver for forwarding server logs to fluentd endpoints. | Package fluentd provides the log driver for forwarding server logs to fluentd endpoints. |
gelf Package gelf provides the log driver for forwarding server logs to endpoints that support the Graylog Extended Log Format. | Package gelf provides the log driver for forwarding server logs to endpoints that support the Graylog Extended Log Format. |
journald Package journald provides the log driver for forwarding server logs to endpoints that receive the systemd format. | Package journald provides the log driver for forwarding server logs to endpoints that receive the systemd format. |
journald/internal/export Package export implements a serializer for the systemd Journal Export Format as documented at https://systemd.io/JOURNAL_EXPORT_FORMATS/ | Package export implements a serializer for the systemd Journal Export Format as documented at https://systemd.io/JOURNAL_EXPORT_FORMATS/ |
journald/internal/fake Package fake implements a journal writer for testing which is decoupled from the system's journald. | Package fake implements a journal writer for testing which is decoupled from the system's journald. |
journald/internal/sdjournal Package sdjournal provides a Go interface to the systemd journal read API by wrapping the libsystemd C library. | Package sdjournal provides a Go interface to the systemd journal read API by wrapping the libsystemd C library. |
jsonfilelog Package jsonfilelog provides the default Logger implementation for Docker logging. | Package jsonfilelog provides the default Logger implementation for Docker logging. |
local Package local provides a logger implementation that stores logs on disk. | Package local provides a logger implementation that stores logs on disk. |
splunk Package splunk provides the log driver for forwarding server logs to Splunk HTTP Event Collector endpoint. | Package splunk provides the log driver for forwarding server logs to Splunk HTTP Event Collector endpoint. |
syslog Package syslog provides the logdriver for forwarding server logs to syslog endpoints. | Package syslog provides the logdriver for forwarding server logs to syslog endpoints. |
pkg | |
registry Package registry contains client primitives to interact with a remote Docker registry. | Package registry contains client primitives to interact with a remote Docker registry. |
backend Package backend includes types to send information to server backends. | Package backend includes types to send information to server backends. |
local Package local provides the default implementation for volumes. | Package local provides the default implementation for volumes. |