The command will also query you if you want the Docker Compose files added as well this is optional.
dockerignore files and add them to your workspace. The command will generate Dockerfile and. You can add Docker files to your workspace by opening the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P)) and using Docker: Add Docker Files to Workspace command. In addition, you can use the Problems panel ( ⇧⌘M (Windows, Linux Ctrl+Shift+M)) to view common errors for Dockerfile and docker-compose.yml files. You can get IntelliSense when editing your Dockerfile and docker-compose.yml files, with completions and syntax help for common commands. To install the extension, open the Extensions view ( ⇧⌘X (Windows, Linux Ctrl+Shift+X)), search for docker to filter results and select Docker extension authored by Microsoft. On Linux, you should also enable Docker CLI for the non-root user account that will be used to run VS Code. Install Docker on your machine and add it to the system path. If you are just getting started with Docker development, try the Docker tutorial first to understand key Docker concepts.
This page provides an overview of the Docker extension capabilities use the side menu to learn more about topics of interest. The Docker extension makes it easy to build, manage, and deploy containerized applications from Visual Studio Code.