MCPcopy
hub / github.com/containerd/containerd / WithCommand

Function WithCommand

integration/main_test.go:445–450  ·  view source on GitHub ↗

Add container command.

(cmd string, args ...string)

Source from the content-addressed store, hash-verified

443
444// Add container command.
445func WithCommand(cmd string, args ...string) ContainerOpts {
446 return func(c *runtime.ContainerConfig) {
447 c.Command = []string{cmd}
448 c.Args = args
449 }
450}
451
452// Add pid namespace mode.
453func WithPidNamespace(mode runtime.NamespaceMode) ContainerOpts {

Callers 15

TestPodUserNSFunction · 0.85
TestUsernsVolumeCopyUpFunction · 0.85
TestLongContainerLogFunction · 0.85
TestAdditionalGidsFunction · 0.85
TestContainerdImageFunction · 0.85
TestWindowsRootfsSizeFunction · 0.85
TestVolumeCopyUpFunction · 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…