美文网首页
centos安装指定版本docker或软件

centos安装指定版本docker或软件

作者: 北二条 | 来源:发表于2019-06-04 16:27 被阅读0次

书接上文。
上回写到:安装harbor的时候报错,说docker版本太低:

[root@localhost harbor]# ./install.sh 

[Step 0]: checking installation environment ...
✖ Need to upgrade docker package to 17.06.0+. 

我们centos7默认安装的都是1.13版本的,下面记录一下如何安装指定版本的docker:

1. 安装yum管理工具:

yum install -y yum-utils

2. 添加国内镜像源

yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3. 查看软件版本:

yum list docker-ce --showduplicates|sort -r
docker-ce.x86_64            3:18.09.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.5-3.el7                     docker-ce-stable
docker-ce.x86_64            18.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            18.03.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.12.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.3.ce-1.el7                    docker-ce-stable

4. 安装指定的docker版本

yum install docker-ce-17.06.2.ce-1.el7.centos

其他软件同理。

以上↑

相关文章

网友评论

      本文标题:centos安装指定版本docker或软件

      本文链接:https://www.haomeiwen.com/subject/ohfrxctx.html