


While the above method is great for setting up a container to develop and test your code, you can go a step further by switching your entire development environment in a container-based fashion with VS Code.

This will open a new window, and start the process of syncing the editor and extensions with container01. We can see the container01 listed, right-click and select “Attach Visual Code Studio”. Now you will be presented with a view of the images and containers within your environment. Attaching to an Existing Containerįollowing on from the previous examples and the container that we previously built and ran, we need to open a new VSCode window and select the docker extension. This lets you use a Docker container as a full-featured development environment since it allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code features.

You will need the Remote - Containers extension and preferably the Docker extension to manage your images and containers. In this section, I will show how to use Visual Studio Code and its Docker integration for Python development. In the 1st part of this series we manipulated containers from the command line, and while that is useful editors and IDEs provide integration of application development with docker.
