docker服务启动失败:Failed to start Docker Application Container Engine

启动docker服务会报错:

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)

解决办法:

vi /etc/sysconfig/docker
# /etc/sysconfig/docker

# Modify these options if you want to change the way the docker daemon runs

OPTIONS='--selinux-enabled=false  --log-driver=journald --signature-verification=false'
if [ -z "${DOCKER_CERT_PATH}" ]; then
    DOCKER_CERT_PATH=/etc/docker
fi

然后重启服务:

systemctl   start docker 

systemctl enable docker

OK!!!

发布了9 篇原创文章 · 获赞 11 · 访问量 6260

猜你喜欢

转载自blog.csdn.net/liubocsn/article/details/91976998
今日推荐