Cloudkul Support

Get docker container’s IP address from host

To get IP address of all the running container, run the following command on your host:

docker inspect --format '{{ .NetworkSettings.IPAddress }}' $(docker ps -q)

In order to get IP address of a specific container, run command as:

docker inspect --format '{{ .NetworkSettings.IPAddress }}'  your_container_id

Take an example as:

docker inspect --format '{{ .NetworkSettings.IPAddress }}'  c15116d8f46f

 

Is this article is helpful?

People like and 1 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request

Start a Project






    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home