
Create a Dev Container - Visual Studio Code
A devcontainer.json file in your project tells VS Code how to access (or create) a development container with a well-defined tool and runtime stack. This container can be used to run an application or to …
Developing inside a Container - Visual Studio Code
After picking the starting point for your container, VS Code will add the dev container configuration files to your project (.devcontainer/devcontainer.json). The VS Code window will reload and start building …
Dev Containers tutorial - Visual Studio Code
The Dev Containers extension uses the files in the .devcontainer folder, namely devcontainer.json, and an optional Dockerfile or docker-compose.yml, to create your dev containers.
Dev Containers Tips and Tricks - Visual Studio Code
You can also use specialized, local devcontainer.json files to create / connect to a remote dev container. Once you are done, press Ctrl+C in the terminal / PowerShell to close the tunnel.
Dev Container CLI - Visual Studio Code
Use the devcontainer build command to build the image and push it to your image registry. See documentation for your image registry (such as Azure Container Registry, GitHub Container …
Advanced container configuration - Visual Studio Code
A devcontainer.json file in your project tells VS Code how to access (or create) a development container with a well-defined tool and runtime stack. This container can be used to run an application or to …
Develop on a remote Docker host - Visual Studio Code
Docker does not support mounting (binding) your local filesystem into a remote dev container, so Visual Studio Code's default devcontainer.json behavior to use your local source code will not work.
Connect to multiple containers - Visual Studio Code
If you'd prefer to use devcontainer.json instead and are using Docker Compose, you can create separate devcontainer.json files for each service in your source tree, each pointing to a common …
Use Docker or Kubernetes from a container - Visual Studio Code
If you are opening a folder in a container, you can pass the host directory into the container as an environment variable to allow you to mount the workspace folder. (This does not, however, work if …
Environment variables - Visual Studio Code
Dockerfile or image: Add the containerEnv property to devcontainer.json to set variables that should apply to the entire container or remoteEnv to set variables for VS Code and related sub-processes …