MCPcopy
hub / github.com/docker/compose / Networks

Method Networks

cmd/formatter/container.go:277–279  ·  view source on GitHub ↗

Networks returns a comma-separated string of networks that the container is attached to.

()

Source from the content-addressed store, hash-verified

275// Networks returns a comma-separated string of networks that the container is
276// attached to.
277func (c *ContainerContext) Networks() string {
278 return strings.Join(c.c.Networks, ",")
279}
280
281// Size returns the container's size and virtual size (e.g. "2B (virtual 21.5MB)")
282func (c *ContainerContext) Size() string {

Callers 2

TestPrepareNetworkLabelsFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestPrepareNetworkLabelsFunction · 0.64