admin avatar

-bash: docker-compose: command not found的两种解决方法

🕖 by admin

-bash: docker-compose: command not found的两种解决方法

第一种,pip安装

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

1
2
3
4
yum -y install epel-release
 yum -y install python-pip
pip install --upgrade pip
pip install docker-compose

第二种,官方一键命令安装

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

检查安安装是否成功

docker-compose -version

💘 相关文章

写一条评论