我在Windows计算机上使用Visual Studio代码。我正在尝试使用包含大量CSV文件(大约200 to )的目录来设置Python Dev Container。当我在Visual Studio中单击以启动远程容器时,应用程序挂起,显示(Starting Dev Container (show log): Building image.
我已经查看了文档并阅读了,我尝试通过添加workspaceMount和workspaceFolder条目来修改devcontainer.json文件:
"workspaceMount" : "source=//c/path/to
查看vscode文档https://code.visualstudio.com/docs/remote/containers和部分 3. After picking the starting point for your container, VS Code will add the dev container configuration files to your project (.devcontainer/devcontainer.json). 我可以看到每次都会启动正确的容器,但在.devcontainer/devcontainer.json中看不到对它的引用 {
"
为了通过网络访问应用程序,我已经完成了几个教程,但是到目前为止还没有什么效果:
//devcontainer.json
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/javascript-node
{
"name": "node",
我正在使用Windows,安装了Docker (使用lunix容器),安装了VS代码和dev容器扩展。我加载了一个项目,它使用来自私有NugetFeed的Nuget,当我试图恢复(交互式) NugetPackages时,我从我的NugetFeed中得到了一个401错误。
/usr/share/dotnet/sdk/2.2.207/NuGet.targets(119,5): error : Unable to load the service index for source https://pkgs.dev.azure.com/[SomeFeedUrl]/nuget/v3/index.json
我使用VSCode 1.63.2与Ubuntu20.04在远程机器中使用ssh,然后在Docker容器中处理一个项目。每当我在容器中执行Python时关闭VSCode窗口,它就会停止所有终端进程。当我重新附加到容器时,我看到一个Python终端显示了Session contents restored from <date> at <time>和脚本的输出,直到我与容器解除连接时为止。但是,当我关闭VSCode或关闭本地计算机时,我希望容器继续运行。
到目前为止,我已经尝试过了:首先,我在远程机器上克隆了我的GitHub爬虫,并用下面的Dockerfile构建了一个Doc
每次更新VS代码时,我的开发容器都会使用Failed to download VS Code Server中断 [16413 ms] Installing VS Code Server for commit d2e414d9e4239a252d1ab117bd7067f125afd80a
[16413 ms] Start: Run in container: mkdir -p /home/<my_username>/.vscode-server/bin/d2e414d9e4239a252d1ab117bd7067f125afd80a_1602875933619
[16432 ms
VSCode构建的TL;DR映像只在我按中的Run按钮时执行CMD命令。
大家好,
我和Desktop和VSCode一起玩口水图像。
我的devcontainer.json文件如下所示:
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",