windows上vscode 通过隧道远程连接linux docker 容器开发(建议改为容器内直接运行隧道,否则CPU负载过高)
1. 使用命令行接口(CLI)启用隧道
复制
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz && tar -xf vscode_cli.tar.gz
2. 创建安全隧道(github账号认证)
复制
./code tunnel --name gandalf-bigdata
3. 浏览器打开URL(无AI-copilot):
https://vscode.dev/tunnel/gandalf-bigdata