Skip to content

Dev Container Images

Dev Container Images are standardized Docker images specifically designed to support development workflows within containers.^[400-devops__03-Containerization__vscode-devcontainer.md] They are maintained to provide a consistent environment for coding, building, and testing applications.

Official Repository

The canonical collection of these images is hosted on GitHub under the repository devcontainers/images.^[400-devops__03-Containerization__vscode-devcontainer.md] This repository serves as the source for various base configurations, including a base alpine image for users who require a minimal footprint.^[400-devops__03-Containerization__vscode-devcontainer.md]

Usage in Workflow

In a containerized development workflow, the source code is typically mounted into the container using volumes.^[400-devops__03-Containerization__vscode-devcontainer.md] This separation allows the development environment (defined by the image) to remain distinct from the user's code, enabling features like "Developing inside a Container" within tools like Visual Studio Code.^[400-devops__03-Containerization__vscode-devcontainer.md]

Troubleshooting

When configuration changes are made, the development environment can be reset using the command Remote-Containers: Rebuild and Reopen in Container.^[400-devops__03-Containerization__vscode-devcontainer.md]

  • [[Docker]]
  • [[Volume]]
  • [[Containers]]
  • [[VSCode]]

Sources

^[400-devops__03-Containerization__vscode-devcontainer.md]