Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1022 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 1022 Bytes

Docker Compose v2 in Docker

A containerized docker compose based on Docker in Docker and the Docker Compose v2 plugin.

Using

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 '

Building

Run ./build to execute:

docker build --pull --tag docker-compose - <Dockerfile

Testing

Run ./test to execute run/ps/down commands using included docker-compose.yml.

Continuous Integration

The image is built daily using the latest versions of Docker and Docker Compose.