IT lexicon › Infra & Ops › Devcontainer

Devcontainer

Infra & Ops På svenska → Updated: 2026-05-27

Reproducible dev environment as container. Specification from Microsoft, open standardized. devcontainer.json defines image + features + post-create commands. Powers GitHub Codespaces + VS Code Dev Containers + JetBrains Gateway.

Standardize "works on my machine" problem: all devs get exact same toolchain. Use cases: open-source project onboarding, polyglot monorepo with different language toolchains per service, sensitive credentials isolation. Features catalog (CNCF-style): "add-Node 20", "add-Docker-in-Docker", "add-Python 3.12" as plug-ins. Pre-built images for common stacks (Microsoft Container Registry). Build on top of docker-compose.yml for multi-container dev (app + db + redis). GitHub Codespaces: gives cloud VMs with devcontainer pre-built, $0.18/hour for 4-core.

← Back to the lexicon