Using docker command to obtain dockers' IP
check specific container’s ip address:
1 | docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' your_container_name_or_id |
check all containers’ ip address:
1 | docker inspect -f '{{.Name}} - {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq) |