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

Beginner
Developer
Student
Visual Studio Code

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

Learning objectives

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

  • Install the Visual Studio Code Remote - 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

Prerequisites

  • A computer that's running one of the following:
    • Windows: Windows 10
    • Mac: macOS 10.9 or later
    • Linux: Ubuntu, Debian, Red Hat, Fedora, or SUSE
  • Visual Studio Code
  • 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