Devcontainer 设置代理
先决条件
Node.js, Docker
安装
使用与您的环境匹配的上游安装或设置路径:
- npm install -g @devcontainers/cli
- git clone https://github.com/1991513ccie-png/skills
- yarn
- yarn compile
上游的要求和注意事项:
- 您可以使用一个独立脚本安装 CLI,该脚本会下载一个捆绑的 Node.js 运行时,因此无需预先安装 Node.js。它适用于 Linux 和 macOS(x64 和 arm64):
- 要安装 npm 包,您需要安装 Python 和 C/C++ 来构建其中一个依赖项(有关说明,请参见 此处)。
- [165 ms] 开始:运行:docker build -f /home/node/vscode-remote-try-rust/.devcontainer/Dockerfile -t vsc-vscode-remote-try-rust-89420ad7399ba74f55921e49cc3ecfd2 --build-arg VARIANT=bullseye /home/node/vscode-remote-try-...
基本用法或入门说明:
开发容器允许您将容器用作功能齐全的开发环境。它可以用于运行应用程序、分离工作代码库所需的工具、库或运行时环境等。
devcontainer run-user-commands - 运行生命周期命令,如 postCreateCommand
bash
Source: https://github.com/1991513ccie-png/skills
Extracted from upstream docs: https://raw.githubusercontent.com/devcontainers/cli/HEAD/README.md
文档
- https://github.com/1991513ccie-png/skills




