Home>Article>Operation and Maintenance> What should I do if docker-compose cannot find the command?

What should I do if docker-compose cannot find the command?

藏色散人
藏色散人 Original
2020-05-16 11:44:59 11663browse

What should I do if docker-compose cannot find the command?

docker-compose What should I do if the command cannot be found?

Solve the docker-compose command does not exist, command not found errors

1.Install the extension source

sudo yum -y install epel-release

2.Install python- pip module

sudo yum install python-pip

3. Check the docker-compose version

docker-compose version # 提示未找到命令

4. Install it with the command

cd /usr/local/bin/ wget https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-Linux-x86_64 rename docker-compose-Linux-x86_64 docker-compose docker-compose-Linux-x86_64 chmod +x /usr/local/bin/docker-compose

5. Then check it with the docker-compose version command

Recommended: "docker tutorial"

The above is the detailed content of What should I do if docker-compose cannot find the command?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does docker env mean? Next article:What does docker env mean?