This is the first day of my participation in the August Text Challenge.More challenges in August

directory

The problem

To solve

The first way

The second way

At the end


The problem

Docker-compose: docker-compose: docker-compose: docker-compose: docker-compose: docker-compose: docker-compose: docker-compose: docker-compose There are still related problems and errors.

The following error message was encountered:

ubuntu@VM-12-4-ubuntu:~$ docker-compose -version

Command ‘docker-compose’ not found

Yes, the corresponding command is not found, indicating that the server system lacks the corresponding tool library.

There is no other way, do the work, go to the investigation, after some torment finally locate the cause, and give two commonly used solutions. To be honest, the essence of the two methods is the same.

To solve

The first way

This method is the most simple and practical, you can use this method to try, if not, then consider the second method, the specific operation is also very simple, execute the following command:

sudo apt  install docker-compose

The execution process and results are as follows:

ubuntu@VM-12-4-ubuntu:~$ sudo apt  install docker-compose

Reading package lists… Done

Building dependency tree       

Reading state information… Done

The following packages were automatically installed and are no longer required:

  amd64-microcode intel-microcode iucode-tool libc-dev-bin

. (omitted)

Setting up python-docker (2.5.1-1)…

Setting up docker-compose (1.17.1-2)…

Processing Triggers for man-DB (2.4.3-2Ubuntu0.1)…

Processing Triggers for LibC-bin (2.27-3Ubuntu1.3)…

After the command is executed, run the docker-comement-version command to check whether the installation is successful. The screenshot is as follows:

The second way

  1. To install the tool source, run the following command:

sudo yum -y install epel-release

2. Run the following command to install the python-pip module:

sudo yum install python-pip

  1. To download the Docker-compose installation package, use the following command:

Wget github.com/docker/comp…

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

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

  1. To modify the executable properties of a file, run the following command:

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

Finally, run the docker-comement-version command to check whether the installation is successful.

At the end

Ok, solve the docker – compose: command not found problems of two kinds of commonly used method is introduced, if you have related problem and content, welcome comments, communication!

Calendar Clocking (August Challenge)