Use a Docker container as a development environment with Visual Studio Code

Visual Studio Code

Get, create, and configure a container-based development environment with the Visual Studio Code Dev Containers extension.

Learning objectives

By the end of this module, you'll be able to:

  • Install the Visual Studio Code Dev Containers extension.
  • Load and connect to a project in a Docker container.
  • Access ports in the container from your local machine.
  • Customize settings while working with your container.
  • Add software to the container environment.


  • Basic knowledge of software development, such as what it means to run code and install a new language
  • Docker and basic Docker knowledge (familiarity with the concept of images, containers, and registries)
  • Git and basic knowledge of GitHub, such as what a repository is