MCPcopy Index your code
hub / github.com/ddev/ddev / ContainerName

Function ContainerName

pkg/dockerutil/containers.go:460–465  ·  view source on GitHub ↗

ContainerName returns the container's human-readable name.

(c *container.Summary)

Source from the content-addressed store, hash-verified

458
459// ContainerName returns the container's human-readable name.
460func ContainerName(c *container.Summary) string {
461 if len(c.Names) == 0 {
462 return c.ID
463 }
464 return c.Names[0][1:]
465}
466
467// GetContainerHealth retrieves the health status of a given container.
468// returns status, most-recent-log

Callers 5

constructContainerNameFunction · 0.92
CleanupFunction · 0.92
GetActiveAppRootFunction · 0.92
RemoveVolumeFunction · 0.85

Calls

no outgoing calls

Tested by 1

constructContainerNameFunction · 0.74