Use a Docker container as a development environment with 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):
- Windows: Docker Desktop 2.0+ on Windows 10 Pro/Enterprise. Windows 10 Home (2004+) requires Docker Desktop 2.3+ and the WSL 2 back end.
- Mac: Docker Desktop 2.0+.
- Linux: Docker CE/EE 18.06+ and Docker Compose 1.21+.
- Git and basic knowledge of GitHub, such as what a repository is