Centos7 安裝指定版本的 Docker
阿新 • • 發佈:2019-05-10
changelog ber build con linux c mirror mir led host Centos 安裝指定版本的 Docker
安裝kubernetes 集群,個別kubernetes對docke版本有要求,簡單整理安裝指定版本docker過程如下:
kubernetes 版本依賴確認:
https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.14.md#external-dependencies
刪除現有版本 docker 版本
yum remove docker-ce docker-ce-selinux container-selinux docker docker-ce-cli -y
查詢可用版本
yum list docker-ce --showduplicates | sort -r
[[email protected] ~]# yum list docker-ce --showduplicates | sort -r * updates: mirrors.njupt.edu.cn Loading mirror speeds from cached hostfile Loaded plugins: fastestmirror Installed Packages * extras: ftp.cuhk.edu.hk * epel: mirrors.aliyun.com * elrepo: mirrors.tuna.tsinghua.edu.cn 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 3:18.09.4-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.3-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.2-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.1-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.0-3.el7 docker-ce-stable docker-ce.x86_64 18.06.3.ce-3.el7 docker-ce-stable docker-ce.x86_64 18.06.2.ce-3.el7 docker-ce-stable docker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stable docker-ce.x86_64 18.06.0.ce-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.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.12.0.ce-1.el7.centos docker-ce-stable ................
安裝指定版本
yum install docker-ce-18.03.1.ce-1.el7.centos -y
安裝結果驗證
docker --version
Docker version 18.03.1-ce, build 9ee9f40
Centos7 安裝指定版本的 Docker