遇到:
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
-
解决:
下载最新的WSL 2 内核
https://docs.microsoft.com/zh-cn/windows/wsl/wsl2-kernel
--
更改国内源:
右键托盘图标-setting-docker engine - 修改registry-mirrors:
"registry-mirrors": [
"https://registry.docker-cn.com",
"http://f1361db2.m.daocloud.io"
]
-- 全部配置文件:
{
"registry-mirrors": [
"https://registry.docker-cn.com",
"http://f1361db2.m.daocloud.io"
],
"insecure-registries": [],
"debug": true,
"experimental": false
}