centos8安装docker时job报错

报错

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

(1)关闭防火墙和selinux

(2)修改/etc/docker/daemon.json,如没有则新建

{ "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"] }

(3)systemctl daemon-reload

(4)systemctl restart docker

(5)systemctl status docker