admin avatar

-bash: docker-compose: command not found two solutions

🕢 by admin





-bash: docker-compose: command not found two solutions

First, pip installation

1
2
3
apt-get python-pip //debian,ubuntu system
pip install --upgrade pip
pip install docker-compose

1
2
3
4
yum -y install epel-release  //centos,fedora system
 yum -y install python-pip
pip install --upgrade pip
pip install docker-compose

two, the official one-click command installation

1
2
3
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o
/usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

Check if the installation is successful

docker-compose -version





💘 相关文章

写一条评论

Based on Golang + fastHTTP + sdb | go1.18.3 Processed in 1ms