MCPcopy
hub / github.com/opencontainers/runc / newContainer

Function newContainer

libcontainer/integration/utils_test.go:165–170  ·  view source on GitHub ↗
(t testing.TB, config *configs.Config)

Source from the content-addressed store, hash-verified

163}
164
165func newContainer(t testing.TB, config *configs.Config) (*libcontainer.Container, error) {
166 name := strings.ReplaceAll(t.Name(), "/", "_") + strconv.FormatInt(-int64(time.Now().Nanosecond()), 35)
167 root := t.TempDir()
168
169 return libcontainer.Create(root, name, config)
170}
171
172// runContainer runs the container with the specific config and arguments
173//

Callers 15

runContainerFunction · 0.85
TestEnterFunction · 0.85
TestProcessEnvFunction · 0.85
TestProcessEmptyCapsFunction · 0.85
TestProcessCapsFunction · 0.85
TestAdditionalGroupsFunction · 0.85
testFreezeFunction · 0.85
TestContainerStateFunction · 0.85
TestPassExtraFilesFunction · 0.85
TestSysctlFunction · 0.85
TestOomScoreAdjFunction · 0.85
TestHookFunction · 0.85

Calls 1

CreateFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…