Expert guidance for Development Containers (devcontainers) in VS Code. Create, configure, and manage devcontainer.json files, use Templates and Features, integrate with Docker/Docker Compose, and troubleshoot common issues. Use when working with devcontainers, containerized development environments, or when user mentions devcontainer.json, dev containers, VS Code containers, or Docker development. Requires Docker (Docker Desktop on Mac/Windows or Docker CE/EE on Linux) and VS Code with Dev Containers extension.
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Expert guidance for Development Containers (devcontainers) in VS Code. Create, configure, and manage devcontainer.json files, use Templates and Features, integrate with Docker/Docker Compose, and troubleshoot common issues. Use when working with devcontainers, containerized development environments, or when user mentions devcontainer.json, dev containers, VS Code containers, or Docker development. Requires Docker (Docker Desktop on Mac/Windows or Docker CE/EE on Linux) and VS Code with Dev Containers extension.
Development Containers Expert
Expert guidance for working with Development Containers (devcontainers) - a standardized way to create fully-featured, containerized development environments.
When to Use This Skill
Activate this skill when:
Creating or configuring devcontainer.json files
Setting up containerized development environments in VS Code
Working with dev container Templates or Features
Troubleshooting devcontainer issues
Integrating development containers with Docker or Docker Compose
User mentions: devcontainers, dev containers, devcontainer.json, VS Code containers, containerized development, or development environment setup
What Are Development Containers?
A development container (dev container) is a running Docker container with a well-defined tool/runtime stack and its prerequisites. The configuration is defined in a devcontainer.json file that tells VS Code (or other supporting tools) how to access or create a development container.
Key Benefits:
Consistency: Same environment for all developers
Repeatability: Quickly recreate environments
Isolation: Separate tools/libraries per project
Onboarding: New developers get productive faster
CI/CD Integration: Same environment for local dev and testing
Each template is fully commented and demonstrates different patterns. For detailed template descriptions, selection guidance, and usage instructions, see references/TEMPLATES_GUIDE.md.
All general, container source, and lifecycle properties
Advanced port configuration and attributes
Environment variables, user configuration, and variable substitution
Host requirements (CPU, memory, storage, GPU)
Security options, secrets management, and container runtime settings
Build configuration, Docker Compose options, and tool customizations
Common Workflows
Open Local Project in Container:
Open project in VS Code
Run: Dev Containers: Reopen in Container (F1)
Select Template if no devcontainer.json exists
VS Code builds and reopens in container
Clone Repository in Container Volume (better performance on Windows/macOS):
Run: Dev Containers: Clone Repository in Container Volume...
Enter Git URL or select from GitHub
Choose Template if needed
Open GitHub PR:
Run: Dev Containers: Clone Repository in Container Volume...
Paste GitHub PR URL
VS Code opens PR with GitHub Pull Requests extension
Rebuild Container (after config changes):
Dev Containers: Rebuild Container
OR Dev Containers: Rebuild Container Without Cache (full rebuild)
Attach to Running Container:
Run: Dev Containers: Attach to Running Container...
Select container from list
Advanced Configuration
Monorepos: Multiple Devcontainers
Important Limitation: Multi-root workspaces (.code-workspace files) open all folders in the same container. To use different containers per package, open each folder separately.
Pattern 1: Separate Package Containers (different tech stacks)