Set up a local development environment for Dev Containers CLI
mainTo develop on the Dev Containers CLI locally, ensure you have the following prerequisites installed:
- Node.js >= 20
- Docker (required for integration tests)
- Git
- yarn
Installation Steps
- Fork and clone the repository:
git clone https://github.com/<your-username>/cli.git
cd cli- Install dependencies:
yarn install- Cross-architecture emulation (Linux/Windows only): If you are on a non-macOS host and need to run tests for different architectures (e.g.,
linux/arm64on x64), register QEMU emulators:
docker run --privileged --rm tonistiigi/binfmt --install allNote: On macOS with Docker Desktop, this step is not required.
Podman Support (Optional)
If you wish to run Podman-specific tests, install Podman. The CLI supports both Docker and Podman. If Podman is not installed, the cli.podman.test.ts tests will fail with spawn podman ENOENT, which is expected behavior.
git clone https://github.com/<your-username>/cli.git
cd cli
yarn install
docker run --privileged --rm tonistiigi/binfmt --install all