MCPcopy Create free account
hub / github.com/docker/cli / networks

Function networks

cli/compose/loader/full-struct_test.go:395–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393}
394
395func networks() map[string]types.NetworkConfig {
396 return map[string]types.NetworkConfig{
397 "some-network": {},
398
399 "other-network": {
400 Driver: "overlay",
401 DriverOpts: map[string]string{
402 "foo": "bar",
403 "baz": "1",
404 },
405 Ipam: types.IPAMConfig{
406 Driver: "overlay",
407 Config: []*types.IPAMPool{
408 {Subnet: "172.16.238.0/24"},
409 {Subnet: "2001:3984:3989::/64"},
410 },
411 },
412 Labels: map[string]string{
413 "foo": "bar",
414 },
415 },
416
417 "external-network": {
418 Name: "external-network",
419 External: types.External{External: true},
420 },
421
422 "other-external-network": {
423 Name: "my-cool-network",
424 External: types.External{External: true},
425 Extras: map[string]any{
426 "x-bar": "baz",
427 "x-foo": "bar",
428 },
429 },
430 }
431}
432
433func volumes() map[string]types.VolumeConfig {
434 return map[string]types.VolumeConfig{

Callers 1

fullExampleConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…