Browse Source

fix: correct typo when using old version of docker !minor

This code is probably not so useful if using compose in docker.

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
cache-relation 1.5.15
Valentin Lab 3 years ago
parent
commit
a882780b6d
  1. 2
      bin/compose-core

2
bin/compose-core

@ -870,7 +870,7 @@ export -f dcmd
get_docker_ips() {
local name="$1" ip format network_id
if ! docker inspect --format='{{ .NetworkSettings.Networks }}' "$name" >/dev/null 2>&1; then
echo "default:$(docker inspect --format='{{ .NetworkSettings.IPAdress }}' "$name" 2>/dev/null)"
echo "default:$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' "$name" 2>/dev/null)"
else
format='{{range $name, $conf := .NetworkSettings.Networks}}{{$name}}{{"\x00"}}{{$conf.IPAddress}}{{"\x00"}}{{end}}'
while read-0 network_id ip; do

Loading…
Cancel
Save