Created
May 13, 2019 09:33
-
-
Save MerleLiuKun/63eba32f331a4a4dd7f6e180ff4ce31d to your computer and use it in GitHub Desktop.
docker commn command
This file contains hidden or 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
# show container's IP | |
sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container_id or container_name> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment