12/10/2021

Retrive docker container IP address



replace 'container_name_or_id' -> 'you id or container name'

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id

Thank you.

No comments:

Post a Comment