MCPcopy Index your code
hub / github.com/containerd/containerd / WithSandbox

Function WithSandbox

client/container_opts.go:82–87  ·  view source on GitHub ↗

WithSandbox joins the container to a container group (aka sandbox) from the given ID Note: shim runtime must support sandboxes environments.

(sandboxID string)

Source from the content-addressed store, hash-verified

80// WithSandbox joins the container to a container group (aka sandbox) from the given ID
81// Note: shim runtime must support sandboxes environments.
82func WithSandbox(sandboxID string) NewContainerOpts {
83 return func(ctx context.Context, client *Client, c *containers.Container) error {
84 c.SandboxID = sandboxID
85 return nil
86 }
87}
88
89// WithImage sets the provided image as the base for the container
90func WithImage(i Image) NewContainerOpts {

Callers 1

NewContainerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…