MCPcopy Create free account
hub / github.com/containerd/nerdctl / DefaultContainerName

Function DefaultContainerName

pkg/composer/serviceparser/serviceparser.go:1020–1022  ·  view source on GitHub ↗

DefaultContainerName returns the service container name following compose naming logic.

(projectName, serviceName, suffix string)

Source from the content-addressed store, hash-verified

1018
1019// DefaultContainerName returns the service container name following compose naming logic.
1020func DefaultContainerName(projectName, serviceName, suffix string) string {
1021 return DefaultImageName(projectName, serviceName) + Separator + suffix
1022}

Calls 1

DefaultImageNameFunction · 0.85

Tested by 15

TestComposeUpFunction · 0.74
TestComposeUpBuildFunction · 0.74
TestComposeUpMultiNetFunction · 0.74
TestComposeUpWithScaleFunction · 0.74
TestComposeIPAMConfigFunction · 0.74
TestComposeUpIdempotentFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…