Skip to content

Instantly share code, notes, and snippets.

@pirogoeth
Created January 20, 2021 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirogoeth/40f45d3614d5f8e489390b679c506fe1 to your computer and use it in GitHub Desktop.
Save pirogoeth/40f45d3614d5f8e489390b679c506fe1 to your computer and use it in GitHub Desktop.
run docker-compose inside of docker...
#!/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