服务器重启后,开启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可正常开启
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。