centos7 install docker failed

[root@Master ~]# systemctl status docker.service
● docker.service – Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2018-05-22 14:50:15 CST; 7s ago
Docs: http://docs.docker.com
Process: 3478 ExecStart=/usr/bin/dockerd-current –add-runtime docker-runc=/usr/libexec/docker/docker-runc-current –default-runtime=docker-runc –exec-opt native.cgroupdriver=systemd –userland-proxy-path=/usr/libexec/docker/docker-proxy-current –init-path=/usr/libexec/docker/docker-init-current –seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
Main PID: 3478 (code=exited, status=1/FAILURE)

5月 22 14:50:13 Master systemd[1]: Starting Docker Application Container Engine…
5月 22 14:50:13 Master dockerd-current[3478]: time=”2018-05-22T14:50:13.784977067+08:00″ level=warning msg=”could not change group /var/run/docker.sock to docker: group docker not found”
5月 22 14:50:13 Master dockerd-current[3478]: time=”2018-05-22T14:50:13.786106106+08:00″ level=info msg=”libcontainerd: new containerd process, pid: 3485″
5月 22 14:50:15 Master dockerd-current[3478]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (–selinux-enabled=false)
5月 22 14:50:15 Master systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
5月 22 14:50:15 Master systemd[1]: Failed to start Docker Application Container Engine.
5月 22 14:50:15 Master systemd[1]: Unit docker.service entered failed state.
5月 22 14:50:15 Master systemd[1]: docker.service failed.


Docker之SELinux is not supported with the overlay2 graph driver on this kernel错误-yellowcong

https://blog.csdn.net/yelllowcong/article/details/80389481

vi /etc/sysconfig/docker

#设置

--selinux-enabled=false

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.