Docker Desktop 在 Ubuntu 22 中显示“Docker Desktop 已停止...”

use*_*814 6 docker docker-desktop ubuntu-22.04

当我打开 Docker Desktop 时,出现“Docker Desktop 已停止...”。当我打开“故障排除”页面时,“重新启动”按钮呈灰色。

\n

我尝试过多种方法:

\n\n

跑步service docker status

\n
\xe2\x97\x8f docker.service - Docker Application Container Engine\n     Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset>\n     Active: active (running) since Tue 2022-07-26 21:48:21 MDT; 2min 0s ago\nTriggeredBy: \xe2\x97\x8f docker.socket\n       Docs: https://docs.docker.com\n   Main PID: 4957 (dockerd)\n      Tasks: 27\n     Memory: 108.5M\n        CPU: 374ms\n     CGroup: /system.slice/docker.service\n             \xe2\x94\x94\xe2\x94\x804957 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/cont>\n
Run Code Online (Sandbox Code Playgroud)\n

当我使用命令\n 运行内置诊断工具时sudo /opt/docker-desktop/bin/com.docker.diagnose check,\n我得到以下输出:

\n
Please investigate the following 3 issues:\n\n1 : The test: can a VM be started?\n    Failed with: vm has not started: failed to open kmsg.log: open /root/.docker/desktop/log/vm/kmsg.log: no such file or directory\n\nThe Docker engine runs inside a Linux VM. Therefore we must be able to start Virtual Machines.\n\n2 : The test: is the application running?\n    Failed with: Docker is not running\n\nIs the Docker Desktop application running?\n\n3 : The test: is Context set to a Docker Desktop context?\n    Failed with: CLI context is set to docker-ce engine\n\nIf the Docker Context is set to \'default\', docker CLI is not addressing Docker Desktop engine.\n
Run Code Online (Sandbox Code Playgroud)\n

#2 似乎仍然发生,即使我尝试重新启动 docker,并且运行sudo systemctl status docker显示 docker 正在运行。

\n

use*_*427 1

我使用的是 fedora 37 ,经过一天的努力,我发现我的 BIOS 虚拟化被禁用了。在 BIOS 中启用虚拟化帮助我摆脱了错误