Portable development environment configuration

VS Code Dev Containers

A specification-backed workflow for describing and opening a repository inside a development container.

Editorial verdict

Start with Dev Containers when portable repository-owned configuration solves the consistency problem; add a workspace platform only when fleet operations or managed capacity become requirements.12

Best for

  • Repositories that can express tooling in container configuration
  • Teams wanting portable configuration across supporting tools
  • Developers with an acceptable local or remote container runtime
12

Not ideal for

  • Teams needing managed cloud compute and lifecycle
  • Workloads whose local container performance is unacceptable
  • Organizations requiring central workspace policy and audit
12
Main trade-off

Configuration stays portable and repository-owned while image maintenance, host resources, secrets, caches, and runtime reliability remain the team's responsibility.12

Product boundary

Whether a repository-owned container definition is enough, or whether the team needs a managed cloud environment control plane.

Dev Containers describe a development container and editor/tooling integration; they do not provide cloud capacity, fleet governance, secrets operations, or environment availability.12

For: Teams standardizing local or remote container-based development without purchasing a full workspace platform

  • Developer hardware cannot run the environment reliably.
  • Central policy or audit is mandatory.
  • On-demand cloud capacity materially improves the workflow.

Why teams consider VS Code Dev Containers

  • Repository-ownedEnvironment configuration can live with the codebase.12
  • Specification routeThe open specification supports more than one implementation.12
  • Tool consistencyContainer images and features can standardize development dependencies.12

Pricing

The open-source specification and VS Code extension do not add a separate software fee; total cost is the chosen host, container runtime, images, storage, and engineering maintenance.12

Repository environment

Open specification plus chosen runtime

Model developer hardware or remote compute, image builds, storage, caches, registry, and maintenance.12

License boundary
Open specification; implementation and host costs are separate12
Ownership boundary
The team maintains images, features, secrets, and host behavior12
Pricing checked View official pricing

VS Code Dev Containers vs alternatives

GitHub Codespaces

Choose when
Managed GitHub-hosted compute and lifecycle are required.
Avoid when
Local or provider-neutral execution is a priority.
Compared with VS Code Dev Containers
Managed convenience adds GitHub compute billing and control-plane dependence.45

Ona

Choose when
Humans and agents need centrally managed isolated environments and policy.
Avoid when
A repository container definition is sufficient.
Compared with VS Code Dev Containers
A broader environment and agent platform replaces a portable configuration-only route.67

Coder

Choose when
The organization wants self-hosted workspace control.
Avoid when
The team cannot operate the workspace platform.
Compared with VS Code Dev Containers
Infrastructure control adds deployment, availability, and security responsibility.89

Resources and sources

Official product, policy, pricing, and maintenance

  • Development Containers specification
    Open
  • Developing inside a container
    Open
  • Dev Container specification repository
    Open
  1. 1
    Development Containers specification

    Dev Container Specification · Accessed Official

  2. 2
    Developing inside a container

    Microsoft · Accessed Official

  3. 3
    Dev Container specification repository

    Dev Container Specification · Accessed Official

  4. 4
    GitHub Codespaces overview

    GitHub · Accessed Official

  5. 5
    Billing for GitHub Codespaces

    GitHub · Accessed Official

  6. 6
    Ona development environments

    Ona · Accessed Official

  7. 7
    Ona pricing

    Ona · Accessed Official

  8. 8
    Coder documentation

    Coder · Accessed Official

  9. 9
    Coder pricing

    Coder · Accessed Official