Skip to content

Instantly share code, notes, and snippets.

@gtrias
Last active December 22, 2015 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtrias/b39472802e596008364a to your computer and use it in GitHub Desktop.
Save gtrias/b39472802e596008364a to your computer and use it in GitHub Desktop.
Get the docker host IP from a container
# 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