MCPcopy Index your code
hub / github.com/moby/moby / CreateManagedContainer

Method CreateManagedContainer

daemon/create.go:44–49  ·  view source on GitHub ↗

CreateManagedContainer creates a container that is managed by a Service

(ctx context.Context, params backend.ContainerCreateConfig)

Source from the content-addressed store, hash-verified

42
43// CreateManagedContainer creates a container that is managed by a Service
44func (daemon *Daemon) CreateManagedContainer(ctx context.Context, params backend.ContainerCreateConfig) (containertypes.CreateResponse, error) {
45 return daemon.containerCreate(ctx, daemon.config(), createOpts{
46 params: params,
47 managed: true,
48 })
49}
50
51// ContainerCreate creates a regular container
52func (daemon *Daemon) ContainerCreate(ctx context.Context, params backend.ContainerCreateConfig) (containertypes.CreateResponse, error) {

Callers

nothing calls this directly

Calls 2

containerCreateMethod · 0.95
configMethod · 0.95

Tested by

no test coverage detected