docker-network

How o get the IP address of docker container using docker SDK for python?

How o get the IP address of docker container using docker SDK for python? Question: I am launching a container with network_mode = bridge, when I inspect the network container in the terminal I get the container IP address. docker inspect -f ‘{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}’ container_id However, I can’t get this IP address from the container …

Total answers: 3