You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Debian 11系统中Docker升级后dockerd无法启动的问题求助

Debian 11系统中Docker升级后dockerd无法启动的问题求助

大家好,我在Debian 11系统上碰到了Docker升级后的启动故障,想跟大家说说问题经过和我找到的解决办法。

之前我的Docker一直运行正常,今天执行sudo apt upgrade升级到新版本后,Docker守护进程突然启动失败了。

执行启动命令:

sudo systemctl start docker

返回的错误提示是:

Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

我通过查看系统日志排查问题:

sudo journalctl -xu docker.service

找到了关键的错误信息:

May 27 09:20:43 debian dockerd[12661]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives don't match any configuration option: graph

当时我的/etc/docker/daemon.json配置文件内容是这样的:

{
"graph": "/data/docker/docker-data/"
}

当前Docker版本为:

Docker version 24.0.2, build cb74dfc

一开始我尝试卸载重装Docker,但问题还是没解决。后来了解到新版本Docker的配置项有变化——原来用来指定数据存储路径的graph已经被废弃,新版本需要用data-root这个配置项。

修改后的daemon.json内容如下:

{
"data-root" : "/data/docker/docker-data/"
}

修改完成后,Docker守护进程就能正常启动了。

备注:内容来源于stack exchange,提问作者K.I.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 14:14:50