Last active
September 29, 2018 20:42
-
-
Save afcajamarcar/0345712f6ea3766b092e36c1d631883d to your computer and use it in GitHub Desktop.
Command for getting the ip of a Docker container.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container's id> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment