【发布时间】:2022-08-21 21:08:37
【问题描述】:
关于为什么Remote - Containers 不能与podman 一起工作的任何提示视窗?
-
安装
podmanv4.2.0on视窗 11通过.msi package -
将
remote.containers.dockerPath设置为podmanVS 代码设置 -
运行
podman machine init -
运行
podman machine start -
打开
Remote ExplorerinVS 代码并呈现以下内容:
一切都在使用 podman — pull、run、images 等,但 VSCode 上的 Remote - Containers 无法识别 podman。
在 VS Code 中运行 Remote-Containers Developer: Show All Logs... 后:
[2022-08-21T12:55:15.916Z] Start: Run: podman version --format {{.Server.APIVersion}}
[2022-08-21T12:55:16.080Z] Stop (164 ms): Run: podman version --format {{.Server.APIVersion}}
[2022-08-21T12:55:16.080Z] Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: dial unix \\\\.\\pipe\\openssh-ssh-agent: connect: No connection could be made because the target machine actively refused it.
和podman system connection list 在终端中:
Name URI Identity Default
podman-machine-default ssh://user@localhost:62078/run/user/1000/podman/podman.sock C:\\Users\\Edmundo\\.ssh\\podman-machine-default true
podman-machine-default-root ssh://root@localhost:62078/run/podman/podman.sock C:\\Users\\Edmundo\\.ssh\\podman-machine-default false
-
如果将错误消息写为问题中的文本(除了屏幕截图的 PNG 格式),错误消息将更易于阅读。
-
我放弃了使用 windows 安装 (
.msi) 并在 ubuntu wsl 中安装了 podman。它以这种方式工作。