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
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.