Feb 23 11:36:38 docker-131.com systemd-udevd[7132]: conflicting device node '/dev/mapper/docker-253:1-2102-base' found, link to '/dev/dm-27' will not be created Feb 23 11:37:38 docker-131.com systemd[1]: Failed to start Docker Application Container Engine. Feb 23 11:37:38 docker-131.com systemd[1]: Failed to start Docker Storage Setup. Feb 23 11:37:38 docker-131.com systemd-udevd[7268]: conflicting device node '/dev/mapper/docker-253:1-2102-base' found, link to '/dev/dm-27' will not be created Feb 23 11:37:38 docker-131.com systemd-udevd[7268]: inotify_add_watch(7, /dev/dm-27, 10) failed: No such file or directory Feb 23 11:38:39 docker-131.com systemd[1]: Failed to start Docker Application Container Engine. Feb 23 11:38:39 docker-131.com systemd[1]: Failed to start Docker Storage Setup. Feb 23 11:38:39 docker-131.com systemd-udevd[7405]: conflicting device node '/dev/mapper/docker-253:1-2102-base' found, link to '/dev/dm-27' will not be created Feb 23 11:37:38 docker-131.com systemd-udevd[7268]: inotify_add_watch(7, /dev/dm-27, 10) failed: No such file or directory
解決辦法
node
首先以docker daemon 的方式打開debug運行,發現有的容器沒有缺乏config.json文件,這是因爲以前強制關閉docker服務致使沒有生成,
docker
目前解決的辦法是,刪除/var/lib/docker/devicemapper/{metadata,mnt}/下對應容器的目錄,這樣處理不足時可能會致使該容器的數據丟失。 shell
以後再重啓服務就沒問題了(可能須要重啓機器,看狀況)json
abf178794b183c304b94fa459420cd143d58a40f2ebc5405966eb86ac46ac137: open /var/lib/docker/containers/abf178794b183c304b94fa459420cd143d58a40f2ebc5405966eb86ac46ac137/config.jsonapp