Skip to content

Instantly share code, notes, and snippets.

@mtrunkat
Created January 9, 2017 19:23
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 mtrunkat/0de5d4f09932a09ebd1b2800f721138a to your computer and use it in GitHub Desktop.
Save mtrunkat/0de5d4f09932a09ebd1b2800f721138a to your computer and use it in GitHub Desktop.
Get IP address of host machine from docker container
#!/bin/bash
/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