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

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.

主站蜘蛛池模板: 商南县| 静海县| 河北省| 永泰县| 安溪县| 城步| 都安| 封开县| 政和县| 天台县| 大化| 明光市| 永清县| 简阳市| 靖宇县| 海门市| 马龙县| 苏州市| 黄大仙区| 汉寿县| 博乐市| 顺平县| 吴川市| 青神县| 叶城县| 安吉县| 韶关市| 淮滨县| 南充市| 满洲里市| 合作市| 隆子县| 威宁| 塔城市| 德阳市| 甘洛县| 定安县| 文山县| 师宗县| 东明县| 德清县|