Bootstrap FreeKB - Docker - install docker-compose on Linux
Docker - install docker-compose on Linux

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 4a08a9 in the box below so that we can be sure you are a human.