服務器重啓後,開啓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.
java
根據提示查看polkit狀態docker
systemctl status polkit
結果如圖
polkit服務異常退出(polkit是系統服務,其做用自行查詢)
服務器
解決方法:
檢查是否安裝了polkit
spa
yum list installed | grep polkit
安裝 polkitdebug
yum install polkit
啓動polkit3d
systemctl start polkit
以後docker可正常開啓code