金融其它Docker

查看其它 1 个回答MT嘲西西的回答

MT嘲西西MT嘲西西技术经理绿地贸易港集团

docker安装过程中出现的报错解决方法?

1、安装docker报Requires: container-selinux >= 2.9

原因:container-selinux版本低或者是没安装的原因

解决方式:
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-7.repo
yum install epel-release
yum makecache
yum install container-selinux

2、安装docker-compose时报错
“ImportError: 'module' object has no attribute 'check_specifier'”
原因:setuptools版本问题
解决方式:
升级setuptools到30.1.0版本以上版本
pip install --upgrade setuptools

3、安装docker-compose时报错
DEPRECATION: Python 2.7 will reach the end of its life on January 1st,

  1. Please upgrade your Python as Python 2.7 won't be maintained
    after that date. A future version of pip will drop support for Python
    2.7.

原因: python2.7提示升级
解决方式:
pip install -i https://pypi.douban.com/simple docker-compose

金融其它 · 2021-12-02
浏览810

回答者

MT嘲西西
技术经理绿地贸易港集团
擅长领域: 云计算容器容器云

MT嘲西西 最近回答过的问题

回答状态

  • 发布时间:2021-12-02
  • 关注会员:2 人
  • 回答浏览:810
  • X社区推广