Skip to content
Proyek

vadpint/devcontainer-studio-2026

Lihat di GitHub

Tentang

Devcontainer Studio 2026 for Windows 10/11. Builds and launches reproducible containerized development environments from devcontainer.json files, letting teams share identical toolchains and run code consistently across machines.

Alat pengembangan

Cara angka ini diukur

Yang dapat Anda lakukan

  • Content-hashed rebuilds , skips rebuild when devcontainer.json, Dockerfile, and feature lockfile hashes are unchanged.
  • Feature resolution , pulls OCI-distributed devcontainer features and writes a reproducible lockfile next to the config.
  • Port forwarding table , maps container ports to host ports with conflict detection against active listeners.
  • Lifecycle hook runner , executes onCreateCommand, updateContentCommand, postCreateCommand, and postStartCommand in order with captured logs.

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Devcontainer Studio 2026 - Containerized Dev Environment Manager for Windows 10/11

Devcontainer Studio 2026 builds, launches, and manages reproducible development containers from devcontainer.json on Windows 10 and 11. This page documents requirements, configuration paths, CLI flags, shortcuts, and known failure modes for developers, platform engineers, and IT admins standardizing toolchains across machines.

Status Active  Windows 10 | 11  Type Reference  License MIT  Version v1.0

Devcontainer Studio 2026 on Windows, reference page banner

Open reference page

Overview  |  Requirements  |  Key Features  |  Configuration  |  Backend Comparison  |  Keyboard Shortcuts  |  Command-Line Options  |  Troubleshooting  |  FAQ  |  Notes

Overview

Devcontainer Studio 2026 is a Windows desktop application that resolves devcontainer.json definitions into running containers, then attaches editors, terminals, and port forwards to them. It wraps a container engine backend and layers build caching, volume mounts, and lifecycle hooks on top.

What It Does

Parses devcontainer.json (schema v1 and v2), builds the referenced image or Dockerfile, applies features and mounts, runs lifecycle commands, and exposes the environment over a local attach socket. Environments are keyed by content hash so unchanged definitions rebuild from cache.

Who It Is For

Teams that need identical compilers, SDKs, and runtime versions across developer laptops, CI runners, and onboarding machines. Useful for platform engineers maintaining shared base images and for admins enforcing consistent toolchains on managed Windows fleets.

What Ships in the Build

The MSI installs the Studio GUI, the dcstudio CLI helper, a WSL2 integration shim, and a set of starter devcontainer templates. Engine backends (Docker Desktop, Podman, WSL2 distro) are detected at first launch, not bundled.

Requirements

Spec Minimum Recommended
OS Windows 10 21H2 (build 19044) Windows 11 23H2 or later
CPU x64, 2 cores with SLAT x64, 4 cores or better
RAM 8 GB 16 GB (32 GB for multi-container stacks)
Display 1280x720, hardware acceleration optional 1920x1080, GPU-capable
Storage 10 GB free on system volume 60 GB free SSD (image and layer cache)
Engine Docker Desktop 4.28+ or Podman 4.9+ or WSL2 with systemd Docker Desktop with WSL2 backend

Key Features

  • Content-hashed rebuilds , skips rebuild when devcontainer.json, Dockerfile, and feature lockfile hashes are unchanged.
  • Feature resolution , pulls OCI-distributed devcontainer features and writes a reproducible lockfile next to the config.
  • Port forwarding table , maps container ports to host ports with conflict detection against active listeners.
  • Lifecycle hook runner , executes onCreateCommand, updateContentCommand, postCreateCommand, and postStartCommand in order with captured logs.
  • Workspace mount policies , enforces bind, volume, or copy modes per workspace root with configurable performance hints.
  • Engine failover , retries build and run against an alternate detected backend when the primary socket is unresponsive.
  • CLI parity , exposes every GUI action through dcstudio for scripting and CI use.
  • Diagnostic bundle export , collects logs, resolved config, and engine state into a zip for support handoff.

Configuration

Path Purpose
%APPDATA%\DevcontainerStudio\settings.json User preferences, engine selection, update channel
%APPDATA%\DevcontainerStudio\keybindings.json Custom keyboard shortcut overrides
%LOCALAPPDATA%\DevcontainerStudio\cache\ Build cache metadata, layer index, resolved feature locks
%LOCALAPPDATA%\DevcontainerStudio\logs\ Rotating session logs, lifecycle hook output
%PROGRAMDATA%\DevcontainerStudio\policies.json Machine-wide admin policy overrides (read-only to user)
%USERPROFILE%\.devcontainer\ Shared devcontainer templates and reusable feature sources
Setting Default Notes
engine.backend auto Values: auto, docker, podman, wsl2. Auto probes in that order.
build.parallelism 2 Concurrent build stages. Raise only on machines with 16 GB+ RAM.
cache.maxSizeGB 20 Build layer cache ceiling. Pruned LRU when exceeded.
update.channel stable Values: stable, preview. Preview gets schema updates early.
telemetry.enabled false Opt-in. Sends anonymous build timing and failure codes only.
log.level info Values: error, warn, info, debug, trace. Debug is verbose.
hooks.timeoutSeconds 600 Per-lifecycle-hook timeout. Raised for slow package installs.

Backend Comparison

Backend Cold build (median) Idle RAM Start latency Best for
Docker Desktop (WSL2) 94 s 780 MB 1.9 s Teams already standardized on Docker Desktop
Podman (WSL2) 88 s 410 MB 1.6 s Rootless, daemonless, license-sensitive environments
WSL2 distro (native) 71 s 260 MB 0.9 s Single-container, low-overhead developer laptops
Docker Desktop (Hyper-V) 112 s 1.4 GB 3.4 s Legacy Windows 10 hosts without WSL2

Keyboard Shortcuts

Action Shortcut
Open command palette Ctrl+Shift+P
Build and launch current workspace Ctrl+Shift+B
Rebuild without cache Ctrl+Shift+Alt+B
Open container terminal Ctrl+`
Open port forwarding panel Ctrl+Shift+P then Ports: Focus
Open workspace in attached editor Ctrl+Shift+O
Reload window (reattach only) Ctrl+Shift+R
Export diagnostic bundle Ctrl+Shift+D
Show engine status tray menu Win+B, then arrow to tray icon
Copy container path to clipboard Ctrl+Shift+C in file tree

Command-Line Options

Flag Argument Purpose
--config <path> Path to devcontainer.json. Defaults to workspace root.
--backend auto|docker|podman|wsl2 Overrides the configured engine for this invocation.
--rebuild none Forces a full rebuild, bypassing the content-hash cache.
--no-cache none Disables layer cache entirely for the build.
--port <host:container> Adds a port forward. Repeatable.
--hook-timeout <seconds> Overrides the lifecycle hook timeout for this run.
--output json|text Machine-readable output format for CI scripting.
--export-diag <path> Writes a diagnostic zip to the given path and exits.
dcstudio up --config .devcontainer/devcontainer.json --backend wsl2 --rebuild --port 3000:3000 --output json
Exit Code Meaning
0 Container built, launched, and attached successfully.
2 Configuration parse error in devcontainer.json or feature lockfile.
3 Engine unreachable or backend probe failed on all candidates.
4 Lifecycle hook exceeded hooks.timeoutSeconds and was terminated.
5 Port conflict: requested host port already bound by another process.

Troubleshooting

Build stalls at "Resolving features"

Feature resolution hangs when the OCI registry is unreachable or an auth token has expired.

  1. Run dcstudio features verify --config .devcontainer/devcontainer.json to test registry reachability.
  2. Check %LOCALAPPDATA%\DevcontainerStudio\logs\feature-resolve.log for the failing registry host.
  3. Clear the feature lockfile at %LOCALAPPDATA%\DevcontainerStudio\cache\features.lock and rerun.
  4. If on a corporate proxy, confirm HTTPS_PROXY is set in the Studio environment and restart the app.

WSL2 backend reports "systemd not running"

The WSL2 distro used as the engine backend starts without systemd, so lifecycle services fail to initialize.

  1. Open the target distro from a terminal and confirm /etc/wsl.conf contains [boot] with systemd=true.
  2. Run wsl --shutdown from an elevated PowerShell prompt.
  3. Relaunch Devcontainer Studio 2026 and let it re-probe the backend.
  4. Verify backend detection with dcstudio engine status --output text.

Attach fails with "socket already in use"

A previous session left a stale attach socket in the cache directory, and the new session cannot bind.

  1. Close all Devcontainer Studio 2026 windows and confirm no dcstudio process is running in Task Manager.
  2. Delete %LOCALAPPDATA%\DevcontainerStudio\cache\attach\ contents.
  3. Restart the app; the socket directory is recreated with correct ACLs.
  4. If the error persists, run dcstudio doctor --fix-sockets.

Lifecycle hook exits with 127 on Windows-mounted paths

postCreateCommand fails because the command line inherits a Windows path with a drive letter that does not exist inside the container.

  1. Open the resolved config via dcstudio config show --resolved and locate the offending hook.
  2. Rewrite the path using the container-side mount root (typically /workspaces/<repo>).
  3. Set hooks.timeoutSeconds high enough for the hook's real runtime in settings.json.
  4. Rerun with dcstudio up --rebuild --hook-timeout 900 to confirm the fix before saving.

FAQ

Does Devcontainer Studio 2026 support multi-container devcontainer configurations?

Yes. Compose-based devcontainer.json files with a dockerComposeFile key are resolved and launched as a stack. The GUI shows each service in the containers panel, and --port accepts service-qualified forwards such as web:3000:3000.

Can I pin the feature versions my team resolves?

The app writes a feature lockfile to the cache directory after each successful resolve. Commit that lockfile alongside devcontainer.json, and set features.lockfileMode to strict in settings.json so resolutions fail rather than drift when the lockfile is present.

How does Devcontainer Studio 2026 behave on machines with no Docker installed?

At first launch it probes for Docker Desktop, Podman, and a WSL2 distro with the engine installed. If none are found, the GUI shows the engine setup panel and the CLI exits with code 3. It does not bundle an engine and does not silently install one.

Notes

Devcontainer Studio 2026 is an independent product. Docker, Podman, Windows, and WSL2 are trademarks of their respective owners. Container specification and devcontainer.json schema behavior may change with upstream releases; consult vendor documentation for engine-specific limits.

Jelajahi proyek terkait

Memuat…