服务器重启后,开启docker服务,发现无法开启,提示如下
[root@10-13-160-184 ~]# systemctl start docker
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to start docker.service: Connection timed out
See system logs and ‘systemctl status docker.service’ for details.

根据提示查看polkit状态

systemctl status polkit

结果如图
在这里插入图片描述
polkit服务异常退出(polkit是系统服务,其作用自行查询)

解决方法:
检查是否安装了polkit

yum list installed | grep polkit

安装 polkit

yum install polkit

启动polkit

systemctl start polkit

之后docker可正常开启

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐