How to get IP address of a docker container?
First you need to issue the following command to get the container id (first column):
Use the container ID to run:
At the bottom,under
#docker #ip_address #container #ps #ip #inspect
First you need to issue the following command to get the container id (first column):
docker ps
Use the container ID to run:
docker inspect <container ID>
At the bottom,under
NetworkSettings
, you can find IPAddress
.#docker #ip_address #container #ps #ip #inspect