Changes in Docker version:
Docker starts with the 1.13.x version, which is divided into Enterprise EE and Community Edition CE, and the version number is also changed to the timeline, for example, 17.03 is March 2017, a bit similar to the version of Ubuntu release method.
The Enterprise Edition will naturally provide some additional services, which are certainly fees. Enterprise Version Description https://blog.docker.com/2017/03/docker-enterprise-edition/
The Community edition is divided into stable and edge two release methods.
The stable version is a quarterly release method, such as 17.03, 17.06, 17.09
The edge version is the month release method, such as 17.03, 17.04 ...
Docker's Linux distribution software repository changed from previous https://apt.dockerproject.org and https://yum.dockerproject.org to current https:// Download.docker.com, the package name is changed to Docker-ce and Docker-ee.
Docker Storage configuration:
sudo yum install -y yum-utils device-mapper-persistent-data lvm2sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.reposudo yum makecache fast
Docker Offload:
To view older version information:
[[email protected] kubelet.service.d]# Docker--versiondocker version 1.13.1, build 6e3bb8e/1.13.1[[email Protected] kubelet.service.d]# Yum List installed | grep dockerdocker.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos @extras docker-client.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos @extras docker-client-latest.x86_64 1.13.1-58.git87f2fab.el7.centos @ext RAS docker-common.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos @extras docker-devel.x86_64 1.3.2-4.el7.centos @extras docker-distribution.x86_64 2.6.2-2.git48294d9.el7 @extras docker-forward-journald.x86_64 1.10.3-44.el7.centos @extras docker-latest.x86_64 1.13 .1-58.git87f2fab.el7.centos @extras docker-latest-logrotate.x86_64 1.13.1-58.git87f2fab.el7.centos @extras D Ocker-latest-v1.10-migrator.x86_64docker-logrotate.x86_64 2:1.13.1-74.git6e3bb8e.el7.centOs @extras docker-lvm-plugin.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos @extras docker-novolume-plugin.x86_6 4 2:1.13.1-74.git6e3bb8e.el7.centos @extras docker-unit-test.x86_64 2:1.13.1-68.gitdded712.el7.centos @ Extras docker-v1.10-migrator.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos @extras Python-docker-py.noarch 1.10.6-4.el7 @extras python-docker-pycreds.noarch 1.10.6-4.el7 @extr As
Unloading:
[[email protected] kubelet.service.d]# sudo yum -y remove docker docker-common docker-selinux docker-engine[[email protected] kubelet.service.d]# yum list installed |grep dockerdocker-devel.x86_64 1.3.2-4.el7.centos @extras docker-distribution.x86_64 2.6.2-2.git48294d9.el7 @extras docker-forward-journald.x86_64 1.10.3-44.el7.centos @extras docker-latest-v1.10-migrator.x86_64docker-unit-test.x86_64 2:1.13.1-68.gitdded712.el7.centos @extras docker-v1.10-migrator.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos @extras python-docker-py.noarch 1.10.6-4.el7 @extras python-docker-pycreds.noarch 1.10.6-4.el7 @extras
View Docker-ce version:
[[email protected] kubelet.service.d]# yum list Docker-ce--showduplicates | sort-rdocker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stabledocker-ce.x86_64 18.06.0 . CE-3.EL7 docker-ce-stabledocker-ce.x86_64 18.03.1.ce-1.el7.centos Docker-ce-sta bledocker-ce.x86_64 18.03.0.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.12.1.ce- 1.el7.centos docker-ce-stabledocker-ce.x86_64 17.12.0.ce-1.el7.centos docker-ce-stabled ocker-ce.x86_64 17.09.1.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.09.0.ce-1.el 7.centos docker-ce-stabledocker-ce.x86_64 17.06.2.ce-1.el7.centos Docker-ce-stabledocke r-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.06.0.ce-1.el7.ce Ntos docker-ce-stabledocker-ce.x86_64 17.03.3.ce-1.el7 docker-ce-stabledocker-ce.x86_64 17.03.2.ce-1.el7.centos Docker-ce -stabledocker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.03.0 . Ce-1.el7.centos docker-ce-stable
Reinstall DOCKER-CE:
[[email protected] kubelet.service.d]# sudo yum -y install docker-ce[[email protected] kubelet.service.d]# systemctl enable docker.serviceCreated symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.[[email protected] kubelet.service.d]# systemctl restart docker[[email protected] kubelet.service.d]# docker versionClient: Version: 18.06.1-ce API version: 1.38 Go version: go1.10.3 Git commit: e68fc7a Built: Tue Aug 21 17:23:03 2018 OS/Arch: linux/amd64 Experimental: falseServer: Engine: Version: 18.06.1-ce API version: 1.38 (minimum version 1.12) Go version: go1.10.3 Git commit: e68fc7a Built: Tue Aug 21 17:25:29 2018 OS/Arch: linux/amd64 Experimental: false
To view components:
[[email protected] kubelet.service.d]# yum list installed | grep dockerdocker-ce.x86_64 18.06.1.ce-3.el7 @docker-ce-stabledocker-devel.x86_64 1.3.2-4.el7.centos @extras docker-distribution.x86_64 2.6.2-2.git48294d9.el7 @extras docker-forward-journald.x86_64 1.10.3-44.el7.centos @extras docker-latest-v1.10-migrator.x86_64docker-unit-test.x86_64 2:1.13.1-68.gitdded712.el7.centos @extras docker-v1.10-migrator.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos @extras python-docker-py.noarch 1.10.6-4.el7 @extras python-docker-pycreds.noarch 1.10.6-4.el7 @extras
Command collection:
# 安装必要工具集$ sudo yum install -y yum-utils# 安装Docker官方源$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo# 更新yum缓存$ sudo yum makecache fast# 安装Dcoker$ sudo yum -y install docker-ce# 启动Docker$ sudo systemctl start docker# 安装完后设置为系统开机自动启动服务$ sudo systemctl enable docker.service# 测试一下$ docker info
Reference:
68062414/
Https://www.cnblogs.com/Peter2014/p/7704306.html
Https://www.jianshu.com/p/31bee0cecaf2
Docker Version Upgrade