Created
April 16, 2017 07:45
-
-
Save chsh/0bdfd8c76a11ea391a0fad840ab2b288 to your computer and use it in GitHub Desktop.
How to get docker container ip.
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
CONTAINER_ID=`docker ps -q` | |
IP=`docker inspect --format="{{ .NetworkSettings.IPAddress }}" $CONTAINER_ID` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment