Docker Compose CLI
Docker Compose works with Docker Engine to create and manage multi-container applications. To interact with Docker Engine, Compose uses a CLI tool named docker-compose
. On Mac and Windows systems, docker-compose
is already a part of Docker Desktop. However, on Linux systems, you need to install the docker-compose
CLI tool after installing Docker Engine. It is packaged into a single executable, and you can install it with the following commands on Linux systems.
Installing Docker Compose CLI in Linux
- Download the binary to
/usr/local/bin
with the following command in your Terminal:sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- Make the downloaded binary executable with the following command:
sudo chmod +x /usr/local/bin/docker-compose
- Test the CLI and installation with the following command in the Terminal on all operating systems:
docker...