Created
January 20, 2021 22:00
-
-
Save pirogoeth/40f45d3614d5f8e489390b679c506fe1 to your computer and use it in GitHub Desktop.
run docker-compose inside of docker...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker run -it --rm \ | |
--privileged \ | |
--net=host \ | |
-v "$PWD":"/workdir/$PWD" \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
--workdir="/workdir/$PWD" \ | |
docker/compose:latest \ | |
docker-compose $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment