Following are the steps for installing and configuring docker compose on a Ubuntu server. make sure you have docker installed before installing docker compose.
-
Download docker compose binary to users bin directory.
curl -L "https://github.com/docker/compose/releases/download/1.11.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-
Change the executable permissions for compose.
chmod +x /usr/local/bin/docker-compose
-
Check the instllation by checking the version of docker compose.
docker-compose --version