安裝docker 17.03.2.ce 及 rancher2.0

系統(tǒng)

[root@master wayne]# cat /etc/redhat-release

CentOS Linux release 7.5.1804 (Core)


安裝步驟

安裝 yum-config-manager

yum -y install yum-utils

yum-config-manager \

? ? --add-repo \

? ? https://download.docker.com/linux/centos/docker-ce.repo


yum makecache



查看yum docker版本

[root@master ~]# yum list docker-ce.x86_64? --showduplicates |sort -r

* updates: mirrors.neusoft.edu.cn

Loading mirror speeds from cached hostfile

Loaded plugins: fastestmirror

* extras: mirrors.neusoft.edu.cn

docker-ce.x86_64? ? ? ? ? ? 3:18.09.0-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.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

docker-ce.x86_64? ? ? ? ? ? 17.09.1.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.09.0.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.06.2.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.06.1.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.06.0.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.03.3.ce-1.el7? ? ? ? ? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.03.2.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.03.1.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

docker-ce.x86_64? ? ? ? ? ? 17.03.0.ce-1.el7.centos? ? ? ? ? ? docker-ce-stable

* base: mirrors.neusoft.edu.cn

Available Packages


注意: 安裝指定版本 docker-ce 17.03 被 docker-ce-selinux 依賴, 不能直接yum 安裝 docker-ce-selinux



開始安裝

wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm

yum install policycoreutils-python -y

rpm -ivh docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm


? ? yum -y install docker-ce-17.03.2.ce



啟動docker

[root@master ~]# systemctl start docker

[root@master ~]# systemctl status docker



查看docker version

[root@master ~]# docker version

Client:

Version:? ? ? 17.03.2-ce

API version:? 1.27

Go version:? go1.7.5

Git commit:? f5ec1e2

Built:? ? ? ? Tue Jun 27 02:21:36 2017

OS/Arch:? ? ? linux/amd64

Server:

Version:? ? ? 17.03.2-ce

API version:? 1.27 (minimum version 1.12)

Go version:? go1.7.5

Git commit:? f5ec1e2

Built:? ? ? ? Tue Jun 27 02:21:36 2017

OS/Arch:? ? ? linux/amd64

Experimental: false




安裝rancher2.0

sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:stable

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
禁止轉(zhuǎn)載,如需轉(zhuǎn)載請通過簡信或評論聯(lián)系作者。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容