docker-compose: command not found

Viewed 84

Docker error:

docker-compose: command not found,How to solve the problem?

1 Answers

This situation is mostly due to the fact that the program is indeed present in our system. We can install Docker Composer.
Download the Docker Compose installation package and use the following command:

wget https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-Linux-x86_64

  1. Rename the tool docker compose and move it to the system executable directory using the following command:

mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose

  1. Modify the executable properties of the file using the following command:

chmod +x /usr/local/bin/docker-compose

  1. Use the following command to check if the installation is successful. If the installation is successful, the following prompt will appear:

docker-compose -version
Image