centos7,按照教程安装docker。安装完成后,运行
sudo systemctl start docker
docker启动不起来,报错:
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
运行 journalctl -xe,有个警告信息:
warning msg="could not change group /var/run/docker.sock to docker: group docker not found"。
查了下解决方法,需要在docker的配置文件/etc/sysconfig/docker 中设置禁用selinux。
vi /etc/sysconfig/docker
--selinux-enable=false

问题解决。
网友评论