官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 三江| 伊宁县| 会昌县| 闻喜县| 翁源县| 綦江县| 社会| 武清区| 马公市| 天镇县| 吉林省| 庆安县| 小金县| 怀仁县| 保靖县| 阜康市| 金沙县| 兴海县| 江城| 建德市| 宁晋县| 沁水县| 娄底市| 漠河县| 静乐县| 大埔区| 吉木萨尔县| 石家庄市| 望都县| 绥棱县| 荔浦县| 星座| 宣城市| 博白县| 麻江县| 栾城县| 崇礼县| 逊克县| 崇仁县| 万盛区| 邯郸县|