This repo provides the code examples for this medium article. This includes the following three examples:
- Basic settings - a simple example of the
devcontainers.json
settings using theimage
argument to launch a dockerized session with thepython:3.10
image - Build settings - extending the first example by using the
build
argument to build the image from a Dockerfile - Customization settings - adding to the previous example the
customizations
argument to set the default Python interpreter and define the extension settings
Additional resources for setting a Python development environment with VScode and the Dev Containers extension:
- Setting Python Development Environment with VScode and Docker - https://github.com/RamiKrispin/vscode-python
- A Dockerized Python Development Environment Template - https://github.com/RamiKrispin/vscode-python-template
- VScode - https://code.visualstudio.com/
- Dev Containers - https://code.visualstudio.com/docs/devcontainers/containers
This tutorial is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.