First Query Linux Kernel version command:
command: [Email protected] ~]# cat/proc/version
Operation Result:
Linux version 3.10.0-327.13.1.el7.x86_64 ([email protected]) (GCC version 4.8.3 20140911 (Red Hat 4.8.3-9) (gcc)) #1 SMP Th U Mar 16:04:38 UTC 2016
It can be understood that the environment used is: Rad Hat Linux, should be Use Yum Command
1) query Docker list
command: [Email protected] ~]# yumlist installed |grep Docker
Operation Result:
docker-engine.x86_64 1.11.1-1.el7.centos @docker-main-repo
Docker-engine-selinux.noarch 1.11.1-1.el7.centos @docker-main-repo
2) Uninstall
Command:
[Email protected] ~]# yum remove-y docker-engine.x86_64
[Email protected] ~]# yum remove-y docker-engine-selinux.noarch
3) Update the latest version online
curl–sslhttps://get.docker.com/| sh
4) start Docker
Servicedocker start
5) enable service at startup
Systemctl Enable Docker
6) Inspection Services
Systemctl Statusdocker
The test section is as follows:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/DA/wKiom1d-A02yzFNrAAM4UvqP-lE907.png-wh_500x0-wm_3 -wmp_4-s_2964578590.png "title=" Wxid_8n6f1m6a6eug21_1467876651636_58.png "alt=" Wkiom1d-a02yzfnraam4uvqp-le907.png-wh_50 "/>
Docker Uninstall, update (Rad Hat Linux)