VS Code远程容器开发,自签名报错
VS Code remote container development, Self signed error
我在代理后面使用 VS 代码,当我在 vscode 中使用远程容器启动我的应用程序时:在容器中打开文件夹,我收到以下错误
控制台的最后 5 行如下
Installing VS Code Server for commit 9ff8ae037e8e6109d65e4b5e3eb3dc60cc187e21
Run: docker exec 4fb52a0c330728418847e744137e17794569847c060c4b73d825bf7a705c37c7 mkdir -p /root/.vscode-server-insiders/bin/9ff8ae037e8e6109d65e4b5e3eb3dc60cc187e21_1561144150809
Error: self signed certificate in certificate chain
我在 WINDOWS、WSL 环境
中设置了代理
我还在工作区设置中设置了 http.proxy 和 proxyStrictSSL=false
我的 .devcontainer.json 有以下内容
{
"dockerComposeFile": "docker-compose.yml",
"service": "my-service",
"workspaceFolder": "/src",
"extensions": [],
"settings": {
"http.proxy": "http://host.docker.internal:8888",
"http.proxyStrictSSL": false
}
}
请注意安装 VSCode 服务器在 WSL 环境中工作正常。
更新到 code-insider 代码稳定修复它。
似乎是 code-insider 的问题并且可以理解它可能不稳定
我在代理后面使用 VS 代码,当我在 vscode 中使用远程容器启动我的应用程序时:在容器中打开文件夹,我收到以下错误
控制台的最后 5 行如下
Installing VS Code Server for commit 9ff8ae037e8e6109d65e4b5e3eb3dc60cc187e21
Run: docker exec 4fb52a0c330728418847e744137e17794569847c060c4b73d825bf7a705c37c7 mkdir -p /root/.vscode-server-insiders/bin/9ff8ae037e8e6109d65e4b5e3eb3dc60cc187e21_1561144150809
Error: self signed certificate in certificate chain
我在 WINDOWS、WSL 环境
中设置了代理我还在工作区设置中设置了 http.proxy 和 proxyStrictSSL=false
我的 .devcontainer.json 有以下内容
{
"dockerComposeFile": "docker-compose.yml",
"service": "my-service",
"workspaceFolder": "/src",
"extensions": [],
"settings": {
"http.proxy": "http://host.docker.internal:8888",
"http.proxyStrictSSL": false
}
}
请注意安装 VSCode 服务器在 WSL 环境中工作正常。
更新到 code-insider 代码稳定修复它。
似乎是 code-insider 的问题并且可以理解它可能不稳定