0

I need to find the IP Address of the docker instance.

Can I do it via a shell command?

1 Answer 1

5

Simpler

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

as

docker ps -q

gives the ids of all running containers

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.