今天忽然發現運行在 Docker 容器裏的 Jenkins 沒法登陸了。 運行 systemctl status docker
,看見它的狀態是 Failed。 試圖重啓,報告Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
。html
sudo tail -100 /var/log/messages
,發現如下信息,因而刪除 /var/run/docker.pid 文件。問題依舊。Error starting daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid
sudo tail -100 /var/log/messages
,發現如下信息,經過谷歌,找到一個相似問題,Error starting daemon: error while opening volume store metadata database: timeout
sudo daemon-reload && sudo systemctl start docker
重啓成功,問題解決ps axf | grep docker | grep -v grep | awk '{print "kill -9 " $1}' | sudo sh