Skip to content

Instantly share code, notes, and snippets.

@elgreg
Created December 22, 2017 20:57
Show Gist options
  • Save elgreg/426c8f651d8b054116231ee15b44cac2 to your computer and use it in GitHub Desktop.
Save elgreg/426c8f651d8b054116231ee15b44cac2 to your computer and use it in GitHub Desktop.
export DOCKER_FOR_MAC_IP=`docker run alpine ping -n -q -c 1 docker.for.mac.localhost | grep -o -E [0-9^/]+\.[0-9^/]+\.[0-9^/]+\.[0-9^/]+ | head -n 1 | xargs echo -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment