Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。
查看你当前的内核版本命令:
uname -r
centos版本
3.10.0-514.el7.x86_64
初步安装和启动docker
[root@localhost ~]# yum update -y
[root@localhost ~]# yum install docker -y
[root@localhost ~]# systemctl start docker
[root@localhost ~]# systemctl enable docker