1、Docker要求CentOS系统的内核版本高于 3.10 ,通过 uname -r 命令查看你当前的内核版本是否支持安账docker
2、安装工具类
yum install -y yum-utils
3、配置docker仓库
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
4、安装docker
yum install docker
5、验证是否成功
docker -v
6、启动docker (关闭 systemctl stop docker)
systemctl start docker
7、设置开机启动docker
systemctl enable docker
8、查看docker启动情况
systemctl status docker