WithSandbox joins the container to a container group (aka sandbox) from the given ID Note: shim runtime must support sandboxes environments.
(sandboxID string)
| 80 | // WithSandbox joins the container to a container group (aka sandbox) from the given ID |
| 81 | // Note: shim runtime must support sandboxes environments. |
| 82 | func 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 |
| 90 | func WithImage(i Image) NewContainerOpts { |
no outgoing calls
no test coverage detected
searching dependent graphs…