gpt4 book ai didi

vscode-remote - 使用 vscode 附加到远程主机上的容器

转载 作者:行者123 更新时间:2023-12-04 15:44:07 43 4
gpt4 key购买 nike

为了为我的数据科学工作流提供足够的计算能力,我在远程机器上使用 Docker 容器。虽然我可以通过 vscode-remote 连接到我的远程机器,但我无法连接到运行在这台机器上的 Docker 容器。有没有办法做到这一点?或者这是尚未实现的功能?

非常感谢!

最佳答案

是的,支持使用 VSCode 远程连接到远程容器并在其中进行开发,但它被认为是对“远程 - 容器”功能的“高级”使用。 (目前的主要用例包括通过 SSH 连接到远程 VM 和连接到本地容器。)

有关说明,请参见此处:
Developing inside a container on a remote Docker host

Sometimes you may want to use the Remote - Containers extension to develop inside a container that sits on remote server. This section outlines how you can achieve this by using devcontainer.json or attaching to an existing remote container...

关于vscode-remote - 使用 vscode 附加到远程主机上的容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56619227/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com