启动 docker,Your version of Windows Subsystem for Linux (WSL) is too old. 【可行】
Docker Desktop Engine Stopped 原因分析(docker桌面停止)WSL没装或没更新
启动 docker,Your version of Windows Subsystem for Linux (WSL) is too old.

WSL needs updating
Your version of Windows Subsystem for Linux (WSL) is too old.
Run the command below to update or for more information, visit .the Microsoft WSL documentation
wsl --update
C:\Users\Administrator\.docker\windows-daemon.json
镜像配置:
{
"experimental": false,
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://mirror.ccs.tencentyun.com",
"https://mirrors.aliyun.com"
]
}
C:\Users\Administrator\.docker\daemon.json
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://mirror.ccs.tencentyun.com",
"https://mirrors.aliyun.com"
]
}
解决方法:
(1) Docker 服务未启动
Docker Desktop 是基于 Windows 服务的,可能是由于 Docker 引擎服务没有正确启动导致的。你可以通过以下步骤检查并重新启动 Docker 服务:
打开 任务管理器,点击 服务 选项卡。
查找 Docker Desktop Service,如果它显示为 停止,右击并选择 启动。

(2) 不要WSL 2

(3) 代理后,启动 docker。

C:\Users\Administrator>wsl --status
Default Version: 2
Windows Subsystem for Linux was last updated on 9/11/2022
WSL automatic updates are on.
Kernel version: 5.10.102.1
Docker 和 WSL 的关系
在 Windows 环境中使用 Docker Desktop 时,Docker 实际上会利用 WSL 来创建和管理 Linux 容器。这就意味着,如果 WSL 版本较低,Docker 就无法顺利运行,从而提示用户可能需要更新 WSL。

浙公网安备 33010602011771号