Chapter 1 Installation docker
1.1 Viewing the kernel is higher than 3.10
[root@zero1 ~]# uname -r
3.10.0-693.el7.x86_64
Yum update 1.2
[root@zero1 ~]# yum updata
1.3 uninstall the old version docker
[root@zero1 ~]# yum remove docker docker-common docker-selinux docker-engine
1.4 to install the software needed
yum-util provide yum-config-manager function, the other two are driven dependent devicemapper
[root@zero1 ~]# yum install -y yum-utils device-mapper-persistent-data lvm2
Source 1.5 yum provided
[root@zero1 ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
View all docker version 1.6
[root@zero1 ~]# yum list docker-ce --showduplicates | sort -r
1.7 Installation
[root@zero1 ~]# yum install -y docker-ce
1.8 open
[root@zero1 ~]# systemctl start docker
View version 1.9
[Root @ zero1 ~] # docker version clent and server have
1.10 added to boot from the start
[root@zero1 ~]# systemctl enable docker
The old version 1.11 has been installed before the first uninstall and then install the docker