1、检查centos内核版本,Docker要求内核版本高于3.10
uname -r
2、关闭防火墙,并查询防火墙是否关闭
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
3、关闭selinux
vi /etc/selinux/config
找到SELINUX=enforcing,按i进入编辑模式,将参数修改为SELINUX=disabled。
修改为:
2、安装依赖
yum install -y yum-utils device-mapper-persistent-data lvm2