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

Method NewContainer

client/sandbox.go:41–41  ·  view source on GitHub ↗

NewContainer creates new container that will belong to this sandbox

(ctx context.Context, id string, opts ...NewContainerOpts)

Source from the content-addressed store, hash-verified

39 Metadata() api.Sandbox
40 // NewContainer creates new container that will belong to this sandbox
41 NewContainer(ctx context.Context, id string, opts ...NewContainerOpts) (Container, error)
42 // Labels returns the labels set on the sandbox
43 Labels(ctx context.Context) (map[string]string, error)
44 // Start starts new sandbox instance

Callers 15

NewContainerMethod · 0.65
testExportImportFunction · 0.65
newContainerFunction · 0.65
TestNewContainerFunction · 0.65
TestContainerStartFunction · 0.65
TestContainerOutputFunction · 0.65
TestContainerWaitFunction · 0.65
TestContainerExecFunction · 0.65
TestContainerPidsFunction · 0.65
TestContainerCloseIOFunction · 0.65

Implementers 1

sandboxClientclient/sandbox.go

Calls

no outgoing calls

Tested by 15

testExportImportFunction · 0.52
newContainerFunction · 0.52
TestNewContainerFunction · 0.52
TestContainerStartFunction · 0.52
TestContainerOutputFunction · 0.52
TestContainerWaitFunction · 0.52
TestContainerExecFunction · 0.52
TestContainerPidsFunction · 0.52
TestContainerCloseIOFunction · 0.52