Docker - install docker-compose on Linux
by
Jeremy Canfield |
Updated: August 01 2021
| Docker articles
Go to https://github.com/docker/compose/releases to determine the lastest stable version of docker compose. Let's say the latest stable version is 1.25.4.
Move into the directory where you want the docker-compose file to reside.
cd /usr/local/bin
Use the wget command to download the docker-compose CLI.
wget "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)"
The docker-compose CLI will probably be named docker-compose-Linux-x86_64. Rename the CLI to docker-compose.
mv docker-compose-Linux-x86_64 docker-compose
Give docker-compose execute permission.
chmod +x docker-compose
You should now be able to use the docker-compose command.
~]# docker-compose --version
docker-compose version 1.25.4, build 8d51620a
Did you find this article helpful?
If so, consider buying me a coffee over at