Skip to content

Instantly share code, notes, and snippets.

@assertnotnull
Created May 16, 2019 13:08
Show Gist options
  • Save assertnotnull/ec8a25727e74eb60110014e742d08a72 to your computer and use it in GitHub Desktop.
Save assertnotnull/ec8a25727e74eb60110014e742d08a72 to your computer and use it in GitHub Desktop.
Set dockerhost as env vars
# 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