Skip to content

Instantly share code, notes, and snippets.

@weslley39
Created July 19, 2015 03:53
Show Gist options
  • Save weslley39/3e72ddbfebbe4bade893 to your computer and use it in GitHub Desktop.
Save weslley39/3e72ddbfebbe4bade893 to your computer and use it in GitHub Desktop.
Setting basic ip to boot2docker
docker-ip() {
boot2docker ip 2> /dev/null
}
echo $(docker-ip) docker | sudo tee -a /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment