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

Preparing the development environment

In order to start creating Windows Containers, you need an instance of Windows Server 2016 or Windows 10 Enterprise/Professional edition (with Anniversary update). Irrespective of the environment, the PowerShell/Docker commands described in this chapter for creating and packaging containers/images are the same. If you already have the environment configured, you can directly skip to the Windows Server Containers development section. The following are the options we have for setting up a Windows Server Container development environment:

  • Windows 10: Using Windows 10 Enterprise or Professional edition with Anniversary update you can create Hyper-V Containers by enabling the containers role. Docker or PowerShell can be used to manage the containers. We will learn how to configure the Windows 10 environment in the following section.

Windows 10 only supports Hyper-V Containers created using nanoserver base OS image; it does not support Windows Server Containers.

  • Windows Server 2016: There are two options for working with containers on Windows Server 2016:
    • You can download the Windows Server 2016 ISO from here (https://www.microsoft.com/en-in/evalcenter/evaluate-windows-server-technical-preview) and install it on a VM running on Hyper-V or VirtualBox. For running Windows Server 2016 the host machine should have Hyper-V virtualization enabled. Additionally, for the containers to access the Internet, ensure that the network is sharable between the host and Hyper-V VMs.
    • Windows Azure provides a readymade instance of Windows Server 2016 with containers configured. This so far is the easiest option available.

In this chapter, I will be using Windows Server 2016 with containers enabled on Azure to create and manage Window Server Containers.

主站蜘蛛池模板: 海门市| 沽源县| 东乡族自治县| 孙吴县| 黄山市| 东丰县| 兰坪| 枝江市| 建德市| 蕉岭县| 铜川市| 洮南市| 安丘市| 浏阳市| 永仁县| 崇州市| 甘洛县| 乐都县| 泽普县| 广宁县| 海南省| 自治县| 崇左市| 微山县| 黑河市| 道真| 那曲县| 沅陵县| 泰兴市| 子洲县| 紫金县| 孝义市| 河源市| 二连浩特市| 兴山县| 繁峙县| 东乌| 新野县| 庄浪县| 郎溪县| 油尖旺区|