1、查看CentOS7内核
[root@Docker~]# uname -r
3.10.0-862.el7.x86_6412
2、添加Docker源
[root@Docker~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3、更新源
[root@Docker~]# yum makecache
4、安装docker-ce
[root@qkl-dev01 ~]# yum install -y docker-ce
5、启动Docker
[root@Docker~]# systemctl start docker
[root@Docker~]# systemctl enable docker
6、查看版本
[root@Docker~]# docker version
Client:
Version: 18.06.0-ce
API version: 1.38
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:08:18 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.0-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:10:42 2018
OS/Arch: linux/amd64
Experimental: false
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:centos 7安装Docker