在某次強行對機子斷電後,再開機後發現docker沒啓動docker
運行service docker start顯示docker start/running, process xxxx,以後不一下子就中止了,網絡
再運行service docker status顯示docker stop/waitingspa
這時候使用docker -d或者docker daemon來查看錯誤code
Warning: '-d' is deprecated, it will be removed soon. See usage. WARN[0000] please use 'docker daemon' instead. INFO[0000] [graphdriver] using prior storage driver "aufs" INFO[0000] API listen on /var/run/docker.sock INFO[0000] Firewalld running: false FATA[0000] Error starting daemon: Error initializing network controller: could not delete the default bridge network: network bridge has active endpoints
這裏關鍵是Error starting daemon: Error initializing network controller: could not delete the default bridge network: network bridge has active endpointsblog
是docker的網絡出現問題,解決方法以下:rem
rm -rf /var/lib/docker/network/files/* service docker start