Home>Article>Operation and Maintenance> 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!