A containerized docker compose
based on Docker in Docker and the Docker Compose v2 plugin.
Run the container using an executable file, e.g. ./docker-compose
:
docker run --rm -v $(pwd):$(pwd):ro -w $(pwd) \
-v /var/run/docker.sock:/var/run/docker.sock \
docker-compose $@
or define a shell alias:
alias docker-compose='docker run --rm \
-v $(pwd):$(pwd):ro -w $(pwd) \
-v /var/run/docker.sock:/var/run/docker.sock \
docker-compose '
Run ./build
to execute:
docker build --pull --tag docker-compose - <Dockerfile
Run ./test
to execute run/ps/down
commands using included docker-compose.yml.
The image is built daily using the latest versions of Docker and Docker Compose.