A reference implementation for the specification that can create and configure a dev container from a devcontainer.json.
open sourceMITself-hostablefree
The Dev Container CLI builds and runs development containers from a devcontainer.json, the open spec also used by editors and hosted dev environments. It can prebuild images, start containers with settings applied, run lifecycle commands, exec into the container, and author and test dev container Features and Templates, with lockfiles pinning feature versions.
Ways to install
Package managers
Problems it solves
- run our devcontainer.json in CI without VS Code
- everyone's dev setup should be a container defined in the repo
- prebuild our dev environment image so it starts fast
- a coding agent needs the same containerized environment as the team
- pin dev container feature versions for reproducible builds
- start a dev container from the command line and exec into it
- share reusable setup snippets across dev containers
- keep project tools off my host machine
Features
- build/prebuild
- up
- exec
- run-user-commands
- features and templates tooling
- lockfiles
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Dev Container CLI does.
- Visual Studio Code Remote Development Open any folder in a container, on a remote machine or in WSL with VS Code
- devenv Declarative, reproducible developer environments using Nix
- Devbox Instant, easy, and predictable development environments
- Flox The software environment platform: one manifest, every environment, from laptop to production.