安装kubernetes的时候1.10.x, 支持最高版本的docker版本为17.03
现在安装docker-ce的版本为18.x
所以要安装一个旧版本.
但安装的时候报错, github的issue里面有对应的解决方法
https://github.com/moby/moby/issues/33930
下面是引用andrewhsu的回复
A new obsoletes restriction was introduced in docker-ce 17.06.0 and it looks like the yum repo is applying it to all versions of the docker-ce indiscriminately. To work around this when installing older versions of docker-ce, you can pass a flag to ignore obsoletes:
$ yum install -y --setopt=obsoletes=0 \
docker-ce-17.03.1.ce-1.el7.centos \
docker-ce-selinux-17.03.1.ce-1.el7.centos
网友评论