本文共 1426 字,大约阅读时间需要 4 分钟。
yum安装docker-18.01-ce
1、删除原来docker#rpm -qa|grep docker#yum remove docker-engine-17.05.0.ce2.把docker的repo文件放置到yum仓库3.安装docker新版本
#yum -y install docker-ce-18.01.0.ce附:docker-ce.repo内容
[docker-ce-stable]
name=Docker CE Stable - $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-stable-source]
name=Docker CE Stable - Sourcesbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-edge]
name=Docker CE Edge - $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-edge-debuginfo]
name=Docker CE Edge - Debuginfo $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-edge-source]
name=Docker CE Edge - Sourcesbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-test]
name=Docker CE Test - $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-test-source]
name=Docker CE Test - Sourcesbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-nightly]
[docker-ce-nightly]name=Docker CE Nightly - $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo $basearchbaseurl=enabled=1gpgcheck=1gpgkey=[docker-ce-nightly-source]
name=Docker CE Nightly - Sourcesbaseurl=enabled=1gpgcheck=1gpgkey=转载于:https://blog.51cto.com/niming2008/2176128