服务器重启后,开启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可正常开启