MCPcopy
hub / github.com/containerd/containerd / NewContainer

Method NewContainer

client/sandbox.go:67–69  ·  view source on GitHub ↗
(ctx context.Context, id string, opts ...NewContainerOpts)

Source from the content-addressed store, hash-verified

65}
66
67func (s *sandboxClient) NewContainer(ctx context.Context, id string, opts ...NewContainerOpts) (Container, error) {
68 return s.client.NewContainer(ctx, id, append(opts, WithSandbox(s.ID()))...)
69}
70
71func (s *sandboxClient) Labels(ctx context.Context) (map[string]string, error) {
72 sandbox, err := s.client.SandboxStore().Get(ctx, s.ID())

Callers

nothing calls this directly

Calls 3

IDMethod · 0.95
WithSandboxFunction · 0.85
NewContainerMethod · 0.65

Tested by

no test coverage detected