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

Function DefaultImageName

pkg/composer/serviceparser/serviceparser.go:1015–1017  ·  view source on GitHub ↗

DefaultImageName returns the image name following compose naming logic.

(projectName string, serviceName string)

Source from the content-addressed store, hash-verified

1013
1014// DefaultImageName returns the image name following compose naming logic.
1015func DefaultImageName(projectName string, serviceName string) string {
1016 return projectName + Separator + serviceName
1017}
1018
1019// DefaultContainerName returns the service container name following compose naming logic.
1020func DefaultContainerName(projectName, serviceName, suffix string) string {

Callers 3

ParseFunction · 0.85
DefaultContainerNameFunction · 0.85
TestParseBuildFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseBuildFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…