Skip to content

Instantly share code, notes, and snippets.

@iwootten
Created January 29, 2016 11:45
Show Gist options
  • 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