MCPcopy
hub / github.com/containerd/containerd / ContainerConfig

Function ContainerConfig

integration/main_test.go:599–610  ·  view source on GitHub ↗

ContainerConfig creates a container config given a name and image name and additional container config options

(name, image string, opts ...ContainerOpts)

Source from the content-addressed store, hash-verified

597// ContainerConfig creates a container config given a name and image name
598// and additional container config options
599func ContainerConfig(name, image string, opts ...ContainerOpts) *runtime.ContainerConfig {
600 cConfig := &runtime.ContainerConfig{
601 Metadata: &runtime.ContainerMetadata{
602 Name: name,
603 },
604 Image: &runtime.ImageSpec{Image: image},
605 }
606 for _, opt := range opts {
607 opt(cConfig)
608 }
609 return cConfig
610}
611
612// CheckFunc is the function used to check a condition is true/false.
613type CheckFunc func() (bool, error)

Callers 15

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