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

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.

主站蜘蛛池模板: 嘉兴市| 仙桃市| 石台县| 格尔木市| 阿瓦提县| 南康市| 项城市| 黑龙江省| 望江县| 綦江县| 乌兰察布市| 巴东县| 堆龙德庆县| 浮山县| 定远县| 惠东县| 辽源市| 开化县| 乐都县| 双城市| 温宿县| 安西县| 岫岩| 清涧县| 南康市| 常山县| 新龙县| 长武县| 辽中县| 南乐县| 禹城市| 盐池县| 大竹县| 青州市| 无极县| 五莲县| 泾源县| 肃北| 安远县| 仁布县| 连城县|