# for CentOS
yum install docker-compose -y
# for Ubuntu
apt-get install docker-compose -y
如果提示:
没有可用软件包 docker-compose,
错误:无须任何处理
通过 pip 安装 docker-compose
# 添加企业版附加包
yum -y install epel-release
# 安装pip
yum -y install python-pip
# 更新pip
pip install --upgrade pip
# 安装docker-compose
pip install docker-compose
# 查看docker compose的版本
docker-compose version
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-buil
如果遇到以上问题,需要卸载pip
yum remove python-pip
rm -f /var/run/yum.pid
yum install docker-ce -y
systemctl start docker
卸载后,去官网下载安装包,手动安装pip · PyPI
tar -zxvf pip-20.3.3.tar.gz
python setup.py install
启动成功,访问nginx界面:
http://192.168.3.116:81/nginx/proxy