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,
原因: python2.7提示升级
解决方式:
pip install -i https://pypi.douban.com/simple docker-compose