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

藏色散人
Release: 2020-05-16 11:44:59
Original
11662 people have browsed it

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
Copy after login

2.Install python- pip module

sudo yum install python-pip
Copy after login

3. Check the docker-compose version

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

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!