CentOS7启动docker失败:SELinux is not supported with the overlay2 graph driver on this kernel.
1、启动失败
启动doker失败,通过status命令查看docker服务状态,提示下面错误
SELinux is not supported with the overlay2 graph driver on this kernel.
2、解决办法
更新kernel
[root@master ~]# yum update kernel
重启系统后,再次启动docker,正常运行了
[root@master ~]# systemctl start docker
[root@master ~]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Mon 2018-03-12 22:57:19 EDT; 10s ago
Docs: http://docs.docker.com
Main PID: 11227 (dockerd-current)
CGroup: /system.slice/docker.service
├─11227 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-...
└─11234 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-t...
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.175624518-04:00" level=info msg="Loading containers: start."
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.247312871-04:00" level=info msg="Firewalld running: false"
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.340140179-04:00" level=info msg="Default bridge (docker0) is assig...address"
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.402341956-04:00" level=info msg="Loading containers: done."
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.422896974-04:00" level=warning msg="failed to retrieve docker-runc...2-dev\n"
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.422980082-04:00" level=warning msg="failed to retrieve docker-init version"
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.423153023-04:00" level=info msg="Daemon has completed initialization"
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.423169492-04:00" level=info msg="Docker daemon" commit="774336d/1....n=1.13.1
Mar 12 22:57:19 master systemd[1]: Started Docker Application Container Engine.
Mar 12 22:57:19 master dockerd-current[11227]: time="2018-03-12T22:57:19.432072653-04:00" level=info msg="API listen on /var/run/docker.sock"
Hint: Some lines were ellipsized, use -l to show in full.
[root@master ~]#
Congratulations @chengyuqiang! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Congratulations @chengyuqiang! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!