docker启动失败failed to connect to containerd: could not change group /var/run/docker.sock:group docker not found
查找一下发现找不到文件vi /etc/sysconfig/docker
改为:--selinux-enabled=false
解决办法:重新安装docker
1、查看已安装docker 包
$ yum list installed | grep docker
因为光执行yum remove docker 删除docker是不够,相关的两个也要删除干净
2、删除镜像/容器等
$ rm -rf /var/lib/docker
3、重新安装
$ yum install docker
4、重新启动 systemctl start docker
启动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)
解决办法:
|
#再重启服务
systemctl start docker
systemctl enable docker