MCPcopy
hub / github.com/apptainer/apptainer / CreateContainer

Method CreateContainer

internal/pkg/runtime/engine/engine_linux.go:64–64  ·  view source on GitHub ↗

CreateContainer is called from master process to prepare container environment, e.g. perform mount operations, setup network, etc. Additional privileges required for setup may be gained when running in suid flow. However, when a user namespace is requested and it is not a hybrid workflow (e.g. fake

(context.Context, int, net.Conn)

Source from the content-addressed store, hash-verified

62 // a hybrid workflow (e.g. fakeroot), then there is no privileged saved uid
63 // and thus no additional privileges can be gained.
64 CreateContainer(context.Context, int, net.Conn) error
65 // StartProcess is called during stage2 after RPC server finished
66 // environment preparation. This is the container process itself.
67 //

Callers 1

createContainerFunction · 0.65

Implementers 3

EngineOperationsinternal/pkg/runtime/engine/fakeroot/e
EngineOperationsinternal/pkg/runtime/engine/oci/engine
EngineOperationsinternal/pkg/runtime/engine/apptainer/

Calls

no outgoing calls

Tested by

no test coverage detected