Created
May 16, 2019 13:08
-
-
Save assertnotnull/ec8a25727e74eb60110014e742d08a72 to your computer and use it in GitHub Desktop.
Set dockerhost as env vars
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
# add this to your .profile | |
export DOCKERHOST=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment