錯誤信息大概是:Job for docker.service failed because the control process exited with error code
這里沒有任何詳細的錯誤信息,所以首先找到詳細的錯誤信息,通過命令:
sudo dockerd –debug
可以看到具體的錯誤原因(如果遇到其它錯誤,請具體問題具體分析):
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to program NAT chain: ZONE_CONFLICT: 'docker0' already bound to a zone
似乎是因為防火牆的區域沖突,導致創建虛擬網絡失敗,在網上找到處理方案:
firewall-cmd --zone=trusted --remove-interface=docker0
執行后再次運行 docker 即可發現成功了。。。
參考:https://segmentfault.com/a/1190000038559129?utm_source=tag-newest