network and docker-compose
gperreymond opened this issue · comments
PERREYMOND Gilles commented
Hi, if you use networks in docker-compose to start your env, then your command :
sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}'
Will return nothing, try to use something like :
sudo docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
./c² commented
Could you please PR for these.
Thx your contribution.
./c² commented
Issue resolved, I did {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} in format. thx @gperreymond