Skip to content
Star
478
Star
478

Dev Containers

This guide shows you how to work with Dev Containers using Docker and VS Code. This lab demonstrates the key concepts and components of Dev Containers through a simple Python application.

  1. Open in Dev Container: Open VS Code in the project folder and execute this command in the Command Palette:

    Terminal window
    > Dev Containers: Reopen in Container
  2. Run the Example:

    Terminal window
    python main.py
IssueSolution
Container won’t startEnsure Docker is running. Rebuild via Dev Containers: Rebuild Container from the Command Palette.
Dependencies not installingRun manually inside the container: pip3 install uv && uv sync
Extension not workingVerify the extension ID in devcontainer.json. Rebuild the container.