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