windows - 为什么 Docker 无法在 Windows 10 Home 中检测到 WSL 2 发行版?
问题描述
我已经按照官方网站上的说明将 docker 与 WSL 2 一起使用,并且我已经为 WSL 2 发行版安装了 Ubuntu 18.04。我认为 docker 可以自动检测我的发行版,所以我可以选择在我的 docker 桌面中使用哪个发行版。我一直在寻找这个问题,但仍然没有得到解决方案。请帮忙,谢谢。
这是 WSL 集成页面,我已将我的 ubuntu 18.04 设置为默认值,但仍然没有运气。
这是我拥有的 wsl 2 发行版列表
因此,我无法访问 docker 容器,它说
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.
解决方案
我相信这是因为 Docker Desktop for Windows 的公共版本还不支持向后移植的 WSL 2 支持。Edge/beta 版可以。
推荐阅读
- ssh - 如何通过step server从内网网站获取网站的正确视图?
- vb.net - 使用 ComboBox Vb.net ReportViewer 过滤数据
- vue.js - 禁用按钮直到响应 VUE
- javascript - 如何用Javascript中的另一个按钮更改按钮的颜色
- javascript - chrome性能选项卡中的“优化代码”是什么意思?
- mysql - 在特定的 MySQL 线程上执行查询 - IDEA
- ios - 无法为模拟器构建应用程序。(M1芯片)
- python - tf.keras.preprocessing.image_dataset_from_directory 没有从目录中读取所有图像,而只是其中的一部分
- html - 在 Blazor 中返回字符串
- python - 多次更新 shapefile 中的数据