容器的網路概觀Container Networking Overview

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

本主題適用於 Windows 容器網路堆疊概觀且包含了連結來建立、設定及管理容器網路的相關的其他指導方針。This topic is an overview of the networking stack for Windows Containers and includes links to additional guidance about creating, configuring, and managing container networks.

Windows Server 容器是用來與其他服務的容器主機上執行分開應用程式或服務的輕量型作業系統模擬方法。Windows Server Containers are a lightweight operating system virtualization method used to separate applications or services from other services that are running on the same container host. 若要於此,每個容器會有自己的作業系統,程序,檔案系統、登錄和 IP 位址的檢視。To enable this, each container has its own view of the operating system, processes, file system, registry, and IP addresses.

Windows 容器功能類似虛擬電腦中的網路。Windows containers function similarly to virtual machines in regards to networking. 每個容器有 virtual 網路介面卡,已連接到 virtual 切換,輸入 / 輸出流量轉送哪些。Each container has a virtual network adapter which is connected to a virtual switch, over which inbound and outbound traffic is forwarded. 若要執行的容器主機上之間隔離,網路區間是每個 Windows Server 和建立 HYPER-V 容器容器的網路介面卡已安裝的。To enforce isolation between containers on the same host, a network compartment is created for each Windows Server and Hyper-V Container into which the network adapter for the container is installed. Windows Server 容器使用主機但 vNIC 附加至 virtual 切換。Windows Server containers use a Host vNIC to attach to the virtual switch. HYPER-V 容器使用(不的公用程式 vm 公開)合成 VM NIC 附加至 virtual 切換。Hyper-V Containers use a Synthetic VM NIC (not exposed to the Utility VM) to attach to the virtual switch.

容器端點可以附加到本機主機網路 (例如 NAT)、實體網路或透過 Microsoft 軟體定義網路 (SDN) 堆疊建立覆疊 virtual 網路。Container endpoints can be attached to a local host network (e.g. NAT), the physical network, or an overlay virtual network created through the Microsoft Software Defined Networking (SDN) stack.

建立及管理容器網路非覆疊日 SDN 部署的詳細資訊,請參考Windows 容器網路在 MSDN 指南。For more information about creating and managing container networks for non-overlay/SDN deployments, refer to the Windows Container Networking guide on MSDN.

建立和管理容器網路 SDN 覆疊 virtual 網路的相關詳細資訊,請參考連接承租人 virtual 網路容器端點For more information about creating and managing container networks for overlay virtual networks with SDN, refer to Connect container endpoints to a tenant virtual network.