package libcontainerd
import "github.com/docker/docker/libcontainerd"
Index ¶
- func NewClient(ctx context.Context, cli *containerd.Client, stateDir, ns string, b libcontainerdtypes.Backend) (libcontainerdtypes.Client, error)
- func ReplaceContainer(ctx context.Context, client types.Client, id string, spec *specs.Spec, shim string, runtimeOptions interface{}, opts ...containerd.NewContainerOpts) (types.Container, error)
Functions ¶
func NewClient ¶
func NewClient(ctx context.Context, cli *containerd.Client, stateDir, ns string, b libcontainerdtypes.Backend) (libcontainerdtypes.Client, error)
NewClient creates a new libcontainerd client from a containerd client
func ReplaceContainer ¶
func ReplaceContainer(ctx context.Context, client types.Client, id string, spec *specs.Spec, shim string, runtimeOptions interface{}, opts ...containerd.NewContainerOpts) (types.Container, error)
ReplaceContainer creates a new container, replacing any existing container with the same id if necessary.
Source Files ¶
libcontainerd_windows.go replace.go
Directories ¶
Path | Synopsis |
---|---|
libcontainerd/local | |
libcontainerd/queue | |
libcontainerd/remote | |
libcontainerd/shimopts | |
libcontainerd/supervisor | |
libcontainerd/types |
- Version
- v27.0.3+incompatible
- Published
- Jun 28, 2024
- Platform
- windows/amd64
- Imports
- 10 packages
- Last checked
- 47 minutes ago –
Tools for package owners.