Hands-On Kubernetes on Windows
上QQ阅读APP看书,第一时间看更新

Preparing a Visual Studio Code workspace

The first step is preparing the Visual Studio Code workspace. Visual Studio Code requires you to install an additional extension for managing Docker. Let's get started:

  1. In order to do that, open the Extensions view by pressing Ctrl Shift X.
  2. In Extensions: Marketplace, search for docker and install the official Docker extension from Microsoft: 

All of the operations demonstrated in this section can be performed without Visual Studio Code, in any code/text editor and using the command line. Visual Studio Code is a useful, multi-platform IDE for developing and testing applications running in Docker containers.

After the installation is complete, Docker Explorer will become available:

  1. You can also leverage new Docker-oriented commands from the Command Palette after pressing Ctrl Shift + P and typing docker into the search bar:

  1. Now, initialize the workspace by opening the desired folder using the Ctrl KCtrl O shortcut or navigating to File | Open Folder....

In the next subsection, we will create a demonstration HTML web page that will be hosted inside the Windows container.