Browse Source

fix: remove warning about "static" network.

The declaration of this network is completely useless.
test
Valentin Lab 6 years ago
parent
commit
4b4aa5215f
  1. 11
      bin/compose
  2. 9
      test/base

11
bin/compose

@ -963,16 +963,7 @@ get_docker_compose () {
return 1
}
base_v2="version: '2.0'
networks:
static:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.25.1.0/24
"
base_v2="version: '2.0'"
merge_yaml_str "$(yaml_key_val_str "services" "$docker_compose_services")" \
"$base_v2" > "$cache_file" || return 1

9
test/base

@ -1244,14 +1244,7 @@ cd "$test_tmpdir"
export DISABLE_SYSTEM_CONFIG_FILE=true
out=\$("$tprog" config) || exit 1
expected="networks:
static:
driver: bridge
ipam:
config:
- subnet: 172.25.1.0/24
driver: default
services: {}
expected="services: {}
version: '2.0'"
[ "\$out" == "\$expected" ] || {

Loading…
Cancel
Save