Leif160519的blog Leif160519的blog

——————

目录
centos 7安装Docker
/    

centos 7安装Docker

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
作  者Leif160519
出  处https://github.icu/articles/2019/08/22/1566471346602.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!