Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
DATA_AND_DATABASES
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

DevContainers and Development Environments Cheat Sheet

DevContainers and Development Environments Cheat Sheet

Back to Developer ToolsUpdated 2026-05-16

DevContainers (Development Containers) provide containerized development environments based on the Development Container Specification maintained at containers.dev. They define complete, reproducible development setups using a devcontainer.json configuration file, enabling "works on my machine" elimination by packaging tools, runtimes, SDKs, and settings into a Docker container. Supported natively by VS Code, GitHub Codespaces, JetBrains IDEs (2025.3+), and DevPod, dev containers shift environment setup from documentation to executable code, ensuring all contributors work in identical environments from day one. The key mental model: a dev container is not just a deployment target but your actual IDE workspace, where the editor connects remotely to the container's running processes, filesystem, and tooling — making local setup conflicts and dependency drift obsolete.

What This Cheat Sheet Covers

This topic spans 17 focused tables and 111 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Core Configuration PropertiesTable 2: Image and Dockerfile ConfigurationTable 3: Lifecycle Scripts and Execution HooksTable 4: Environment Variables and ConfigurationTable 5: Features and Dev Container ExtensionsTable 6: Port Forwarding and NetworkingTable 7: Mounts and Volume ConfigurationTable 8: User and Security ConfigurationTable 9: Docker Compose IntegrationTable 10: VS Code and Editor CustomizationTable 11: GitHub Codespaces and Cloud ConfigurationTable 12: Advanced Runtime ConfigurationTable 13: Template, Inheritance, and Configuration ReuseTable 14: DevContainer CLI and CI IntegrationTable 15: Podman and Alternative RuntimesTable 16: Performance Optimization and Best PracticesTable 17: Debugging and Troubleshooting

Table 1: Core Configuration Properties

PropertyExampleDescription
name
"name": "Python 3 Dev"
Display name shown in VS Code UI and Codespaces interface; purely for human readability.
image
"image": "mcr.microsoft.com/devcontainers/python:3.12"
Specifies a pre-built container image from Docker Hub, MCR, or private registry; most direct way to start.
dockerfile
"dockerfile": "Dockerfile"
Path to a custom Dockerfile (relative to devcontainer.json); overrides image if both are present.
dockerComposeFile
"dockerComposeFile": "docker-compose.yml"
Enables multi-container setups with Docker Compose; specify which service is the dev container with service property.
service
"service": "app"
When using Docker Compose, identifies the service in the compose file that VS Code attaches to.

More in Developer Tools

  • Debugging in Python and VSCode Cheat Sheet
  • Different Linters and Their Specifics Cheat Sheet
  • AI-LLM Code Generation Cheat Sheet
  • File Formats Cheat Sheet
  • Notepad++ Cheat Sheet
  • Sublime Text Cheat Sheet
View all 55 topics in Developer Tools