How do I use docker-compose with docker executor?

On some CircleCI curated images such as the Machine executor, and convenience docker images, we pre-install docker-compose. If your docker image doesn't have docker compose you can still use your image with remote-docker by installing docker compose at image build time or installing it within your job


- run:
name: Install Docker Compose
command: | set -x curl -L https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose

After using the  - setup_remote_docker command the newly installed docker compose can build docker files using the remote environment in the same way regular docker commands do.

We have instructions and examples of using docker-compose with the docker executor here on our docs page.

Was this article helpful?
2 out of 12 found this helpful

Comments

0 comments

Article is closed for comments.