Container Tools for Visual Studio Code
The Container Tools extension makes it easy to build, manage, and deploy containerized applications from Visual Studio Code. It also provides one-click debugging of Node.js, Python, and .NET inside a container. Check out the Working with containers topic on the Visual Studio Code documentation site to get started. Why do I have this extension?If you didn't install it directly, you probably got it as part of the Docker Extension Pack. The extension pack is optional and can be uninstalled at any time. The Container Tools extension replaces the language service, container management, and debugging functionality previously provided by the Docker extension. See here for additional information. InstallationInstall Docker on your machine and add it to the system path. On Linux, you should enable rootless Docker and set the generated Docker context to "rootless" (more secure) or enable Docker CLI for the non-root user account (less secure) that will be used to run VS Code. To install the extension, open the Extensions view, search for Overview of the extension featuresEditing Docker filesYou can get IntelliSense when editing your In addition, you can use the Problems panel (Ctrl+Shift+M on Windows/Linux, Shift+Command+M on Mac) to view common errors for Generating Docker filesYou can add Docker files to your workspace by opening the Command Palette (F1) and using Containers: Add Docker Files to Workspace command. The command will generate a The extension can scaffold Docker files for most popular development languages (C#, Node.js, Python, Ruby, Go, and Java) and customizes the generated Docker files accordingly. When these files are created, we also create the necessary artifacts to provide first-class debugging support for Node.js, Python, and .NET (C#). Container ExplorerThe Container Tools extension contributes a Container Explorer view to VS Code. The Container Explorer lets you examine and manage container-related assets: containers, images, volumes, networks, and container registries. The right-click menu provides access to commonly used commands for each type of asset. You can rearrange the view panes by dragging them up or down with a mouse and use the context menu to hide or show them. Container commandsMany of the most common container commands are built right into the Command Palette: You can run container commands to manage images, networks, volumes, container registries, and Docker Compose. In addition, the Containers: Prune System command will remove stopped containers, dangling images, and unused networks and volumes. Docker ComposeDocker Compose lets you define and run multi-container applications. Our Compose Language Service in the Container Tools extension gives you IntelliSense and tab completions when authoring We also provide tooltips when you hover over a Compose YAML attribute. While Once your Using image registriesYou can display the content and push, pull, or delete images from Docker Hub and Azure Container Registry: An image in an Azure Container Registry can be deployed to Azure App Service directly from VS Code. See Deploy images to Azure App Service to get started. For more information about how to authenticate to and work with registries, see Using container registries. Debugging services running inside a containerYou can debug services built using Node.js, Python, or .NET (C#) that are running inside a container. The extension offers custom tasks that help with launching a service under the debugger and with attaching the debugger to a running service instance. For more information, see Debug containerized apps and Customize the Container Tools extension. Azure CLI integrationYou can start Azure CLI (command-line interface) in a standalone, Linux-based container with Container Images: Run Azure CLI command. This gives you access to the full Azure CLI command set in an isolated environment. For more information on available commands, see Get started with Azure CLI. Alternative container runtimesThe Container Tools extension supports multiple container runtime options, such as Docker or Podman. If you want to change runtimes, you can do so with the VS Code setting ContributingSee the contribution guidelines for ideas and guidance on how to improve the extension. Thank you! Code of ConductThis project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments. TelemetryVS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don’t wish to send usage data to Microsoft, you can set the License |