Skip to content

Instantly share code, notes, and snippets.

@iwootten
Created January 29, 2016 11:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iwootten/eba76421afa519719db7 to your computer and use it in GitHub Desktop.
Save iwootten/eba76421afa519719db7 to your computer and use it in GitHub Desktop.
Use your docker-machine host ip as docker-compose environment variable
sed -e "s/DOCKER_HOST_IP/$(docker-machine ip your-machine-name)/g" docker-compose.yml | docker-compose --file - up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment