Last active
December 22, 2015 11:29
-
-
Save gtrias/b39472802e596008364a to your computer and use it in GitHub Desktop.
Get the docker host IP from a 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
# Source http://stackoverflow.com/questions/22944631/how-to-get-the-ip-address-of-the-docker-host-from-inside-a-docker-container | |
/sbin/ip route|awk '/default/ { print $3 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment