Skip to content

Instantly share code, notes, and snippets.

@dcorrigan
Created December 26, 2017 14:40
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 dcorrigan/f5b0b428b20a51d5d987481cdb42b83b to your computer and use it in GitHub Desktop.
Save dcorrigan/f5b0b428b20a51d5d987481cdb42b83b to your computer and use it in GitHub Desktop.
get host IP from inside 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