# for CentOSyum install docker-compose -y# for Ubuntuapt-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-piprm -f /var/run/yum.pidyum install docker-ce -ysystemctl start docker
卸载后,去官网下载安装包,手动安装pip · PyPI
tar -zxvf pip-20.3.3.tar.gzpython setup.py install
启动成功,访问nginx界面:
http://192.168.3.116:81/nginx/proxy