无法在Ubuntu上启动Docker应用程序容器引擎

nxowjjhe  于 2023-02-21  发布在  Docker
关注(0)|答案(1)|浏览(243)

我在Ubuntu服务器上运行Docker:
描述:Ubuntu 20.04.5 LTS版本:20.04代号:焦点的
Docker运行了一年左右没有问题,但突然它不再可用:

root@srv-lab-t-427:/home/schm# systemctl status docker.service
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2023-02-05 06:43:29 UTC; 2min 43s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 1478999 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/>
   Main PID: 1478999 (code=exited, status=1/FAILURE)

Feb 05 06:43:29 srv-lab-t-427 systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Feb 05 06:43:29 srv-lab-t-427 systemd[1]: Stopped Docker Application Container Engine.
Feb 05 06:43:29 srv-lab-t-427 systemd[1]: docker.service: Start request repeated too quickly.
Feb 05 06:43:29 srv-lab-t-427 systemd[1]: docker.service: Failed with result 'exit-code'.
Feb 05 06:43:29 srv-lab-t-427 systemd[1]: Failed to start Docker Application Container Engine.

有办法解决吗?

polhcujo

polhcujo1#

查看Docker守护进程日志:journalctl -xu docker.service
升级后我发现此错误消息:
无法使用文件/etc/docker/daemon.json配置Docker后台进程:从文件和命令行标志进行合并配置验证失败:“graph”配置文件选项已弃用;使用“数据根”代替
只需将graph更改为data-root即可解决此问题。

相关问题