Docker Server Windows



-->

Host operating system: Windows Server or Windows 10. Hypervisor: Windows 10 must run Hyper-V to support containers; Windows Server, as shown in the table, has more flexibility. Docker engine: Docker is a third-party application for managing containers. Docker Enterprise runs on Windows Server; Docker Desktop for Windows runs in Windows 10. Just checking the Task Manager should help people if they should use Docker for Windows or the Docker Toolbox. Current 'Getting Started' says this - Docker for Windows requires 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later) and Microsoft Hyper-V. Windows Firewall is blocking my attempt to allows Docker for Windows to share C: on windows 10 machine. Works fine when Windows Firewall off. When its on I get. A firewall is blocking file Sharing between Windows and the containers. See documentation for more info. The documentation says. You do not need to open port 445 on any other network.

This article outlines Microsoft's support policy concerning Windows containers and Docker for on-premises deployments.

Original product version: Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows 10 - all editions
Original KB number: 4489234

Note

When customers experience issues with or have questions about Windows containers and related Docker functionality, Microsoft is their first point of contact. For similar information about Microsoft's support policy for containers in Azure, see Support policy for containers and related services on Azure.

Supported configurations for container hosts

Microsoft defines the supported host configurations in the following terms:

  • Host operating system: Windows Server or Windows 10.

  • Hypervisor: Windows 10 must run Hyper-V to support containers; Windows Server, as shown in the table, has more flexibility.

  • Docker engine: Docker is a third-party application for managing containers. Docker Enterprise runs on Windows Server; Docker Desktop for Windows runs in Windows 10. For more information about Docker, see Docker on Windows.

  • Container type: Microsoft supports Windows Server containers, Hyper-V containers, and Linux containers. However, not all host configurations can support all of the container types. For general information about Windows containers and container types, see Containers on Windows.

Note

The Linux Containers on Windows (LCOW) feature is under active development. For more information, see Linux Containers on Windows. You can track ongoing progress in the Moby project on GitHub.

Host component support

Customers that deploy Windows Server containers on supported Windows Server versions running on physical hardware or virtual machine on Hyper-V will receive full support for issues that are related to the operating system and/or container engine.

Supported configurations for Windows Server container hosts

Microsoft supports Windows containers on the following versions and releases of Windows Server:

  • Windows Server 2019 (1809) Standard or Datacenter editions
  • Windows Server 2016 (1803) Standard or Datacenter editions
  • Windows Server 2016 (1709) Standard or Datacenter editions
  • Windows Server 2016 (1607) Standard, Datacenter, or Nano Server editions
  • Windows IoT core (only available to Windows Insider members)

Note

You cannot host containers on Windows Server, Nano Server edition, on any Windows Server release later than 1607.

Microsoft supports Windows containers on both LTSC and Semi-annual Channel (SAC) releases. For information about the support lifecycles for Windows versions and releases, see Windows Server Semi-Annual Channel overview.

To deploy containers in Windows Server, you must install Docker Enterprise (see Install Docker Engine - Enterprise on Windows Servers). Docker provides full support for Docker Enterprise at Docker support.

On these versions of Windows, the types of containers that Microsoft supports depends on whether your host is a physical computer or a virtual machine, and whether Windows is running with Hyper-V enabled.

Supported container types on a physical container host

HypervisorSupported container types
NoneWindows Server containers
Hyper-V
  • Windows Server containers
  • Hyper-V containers
  • Linux containers

Supported container types on a virtual machine container host

VM host hypervisorGuest OSGuest hypervisorSupported container types
Hyper-VWindows Server (full or core)NoneWindows Server containers
Hyper-VWindows Server (full or core)Hyper-V (must be running in nested virtualization mode)Windows Server containers Hyper-V containers
Hyper-VLinuxLinuxLinux containers
VMWare ESXWindows Server (full or core)None (Hyper-V not supported on VMWare ESX)Windows Server containers

Supported configurations for Windows 10 container hosts

Microsoft supports containers on Windows 10 Professional or Enterprise with Anniversary Update (version 1607) or later, with the following requirements:

  • Hyper-V must be enabled

  • Docker Desktop for Windows must be installed (see Install Docker Desktop for Windows). Docker Desktop for Windows is the Community Edition (Docker CE) and is ideal for developers and small teams looking to get started with Docker and experimenting with container-based apps.

    Microsoft does not provide support for Docker Desktop for Windows. Support is only provided through the Docker Community Forums. For more information, see 'What if I have problems or questions?' in the Docker for Windows FAQ at Docker FAQ.

Docker Server Windows 10

You can use Hyper-V containers or Linux containers on Windows 10. You cannot use Windows Server containers.

Microsoft does not support containers on virtual machines that are hosted on a Windows 10 computer. To use containers on a virtual machine, use Windows Server as the virtual machine host.

Docker Windows Server 2019 Linux Containers

Requirements for container hosts

For information about requirements for container hosts, see:

For information about requirements and compatibility issues for virtualization, see Windows Server Catalog: Server Virtualization Validation Program.

To run Hyper-V containers, the container host must meet the requirements for running Hyper-V itself. To summarize, Hyper-V requires:

  • 64-bit processor, with the following capabilities:

    • Second-level address translation (SLAT): The Windows hypervisor functionality requires SLAT (the Hyper-V management tools do not.

    • Hardware-assisted virtualization: This is available in processors that include a virtualization option - specifically processors with Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) technology.

    • Hardware-enforced Data Execution Prevention (DEP) must be available and enabled. For Intel systems, this is the XD bit (execute disable bit). For AMD systems, this is the NX bit (no execute bit).

  • VM Monitor Mode extensions.

  • At least 4 GB of RAM. More memory is better. You'll need enough memory for the host and all virtual machines that you want to run at the same time.

  • Virtualization support turned on in the BIOS or UEFI.

For more information, see System requirements for Hyper-V on Windows Server.

Supported container orchestrators

The Azure Service Fabric is not available to orchestrate on-premises containers. Windows does support Docker swarm, Kubernetes, and Red Hat orchestrators.

  • Docker swarm: Docker swarm is a feature of the Docker engine. Docker swarm is fully supported by Docker. For more information about using Docker swarm with Windows containers, see Getting started with swarm mode.

  • Kubernetes: Kubernetes for on-premises Windows Server deployments is still in preview (Beta). Microsoft will not provide any support until the official announcement of general availability. Until then, use the following resources:

    • For the latest information about functionality with Windows Server 2016 and Windows Server 2019, see Kubernetes on Windows.

    • To track development and participate in community preview efforts, follow the Kubernetes #SIG-Windows community.

  • Red Hat OpenShift (Windows Server 2019 only): Red Hat OpenShift on Windows Server 2019 is still in private preview. Microsoft will not provide support until the announcement of general availability.

Supported container images

Microsoft offers four container base images for Windows:

  • Windows Server core: If your application needs the full .NET framework, this is the best image to use.
  • Nano Server: For applications that only require .NET Core, Nano Server will provide a much slimmer image.
  • Windows: You may find your application depends on a component or .dll that is missing in Server Core or Nano Server images, such as GDI libraries. This image carries the full dependency set of Windows.
  • Windows IoT core: This image is purpose-built for IoT applications. You should use this container image when targeting an IoT Core host.

Note

The IoT Core base image is only available to members of the Windows Insider program.

As outlined in Supported container hosts, not all host operating systems support both Windows Server containers and Hyper-V containers. Similarly, not all of the base images support both container types. The following table outlines which container types you can create using each base image on each of the host operating systems.

Container base OS images that are supported on Windows container hosts

Container host OSWindows Server coreNano ServerWindowsWindows IoT core
Windows Server 2016 or 2019 Standard or DatacenterWindows Server containers
Hyper-V containers
Windows Server containers
Hyper-V containers
Windows Server containers
Hyper-V containers
Not supported
Windows Server 2016 Nano ServerNot supportedWindows Server containers
Hyper-V containers
Hyper-V containersNot supported
Windows 10 Professional or EnterpriseHyper-V containersHyper-V containersHyper-V containersNot supported
Windows IoT coreNot supportedNot supportedNot supportedWindows Server containers

If you plan to work with container hosts that run different versions and releases of Windows, you will also need to consider the versions and releases of the container images. Some container features are not backward-compatible, so some newer base OS images may not run on container hosts with older OS versions. For more detailed information about compatibility issues between base OS image versions and host OS versions, see Windows Container Version Compatibility.

Support for container workloads

Microsoft fully supports its container base OS images, as described in this section. For support of Microsoft applications in containers, see GitHub, the Microsoft forums, or the Microsoft repository on DockerHub for the custom container image in question.

When running third-party applications in Windows containers, refer to the application vendor for support. In particular, confirm with the application vendor that they support running the application in a Windows container.

Supported networking configurations

Microsoft fully supports Windows container networking functionality. This functionality includes the Host Networking Service (HNS) and Host Compute Service (HCS). HNS and HCS work together to create containers (HCS) and attach endpoints to a network (HNS). Additionally, it includes the following container network drivers (for full descriptions of these drivers, see Windows Container Network Drivers):

  • Network Address Translation (NAT): This is the default driver for container networks. NAT networks support port forwarding and mapping from container hosts to container endpoints. Microsoft supports multiple NAT networks on Windows 10 container hosts that have Windows 10, version 1703 (also known as the Creators Update) installed.

  • Transparent: When configured with a user-specified subnet, transparent networks support static IP addresses from the physical network or dynamic IP addresses assigned by an external DHCP server. When using a transparent network for containers on a virtual container host, you must configure MAC address spoofing.

  • Overlay: Microsoft supports overlay networks for use with Docker swarm or Kubernetes orchestration. To use overlay networks, your configuration must meet the following requirements:

    • Your container hosts run Windows Server 2019, Windows Server 2016, or Windows 10 Creators Update.

    • Your deployment meets the requirements listed in Using overlay networks.

    • When using Kubernetes, you are using Flannel or OVN control panes.

      Note

      Kubernetes for on-premises Windows Server deployments is still in preview (Beta). For information about Kubernetes support, see Supported container orchestrators.

  • L2Bridge: Microsoft supports L2Bridge networks to assign containers to the same IP subnet as the container host. To use L2Bridge networks, your configuration must meet the following requirements:

    • Your container hosts run Windows Server 2019, Windows Server 2016, or Windows 10 Creators Update.

    • IP addresses must be assigned statically from the same prefix as the container host.

    • You configure MAC address spoofing.

  • L2Tunnel: Microsoft primarily supports L2Tunnel networks for use in a Microsoft Cloud Stack. Otherwise, requirements for L2Tunnel networks resemble the requirements for L2Bridge networks.

Advanced network options - supported and unsupported

Docker Server Windows

Microsoft supports switch-embedded teaming for container host networks used by Docker. Microsoft does not support any other NIC teaming configuration for container networking. For more information, see Advanced Network Options in Windows.

Microsoft does not support the following features for container networking:

  • IPSec encryption for container communication

  • HTTP proxy configuration for containers. You can track a preliminary PR for this feature at Changes to support registry modification in containers.

  • Attaching endpoints to running Hyper-V containers (hot-add)

Microsoft does not support the following commands and options for Docker:

CommandUnsupported options
Docker run
  • --ip6
  • --dns-option
Docker network create
  • --aux-address
  • --internal
  • --ip-range
  • --ipam-driver
  • --ipam-opt
  • --ipv6
  • --opt encrypted

Supported service accounts for containers

Microsoft supports Active Directory group Managed Service Accounts (gMSAs) for containers.

Containers cannot be domain-joined. By using Group Managed Service Accounts (gMSAs), Windows containers themselves and the services they host can be configured to use a specific gMSA as their domain identity. Any service running as Local System or Network Service will use the Windows container's identity just like they use the domain-joined host's identity. For information about using gMSAs, see:

Supported endpoint security options for containers and container hosts

Microsoft supports Windows Defender to protect container hosts. However, it does not support Windows Defender to run within containers.

Docker provides information about third-party providers and their endpoint protection products at Endpoint security for Windows containers. When using a third-party product, verify that the provider supports the product for containers. Be aware of any issues and limitations related to running the product within a container. Additionally, for recommendations about how to configure anti-virus protection to work with containers, see Anti-virus optimization for Windows Containers.

Estimated reading time: 4 minutes

Docker Enterprise Edition for Windows Server 2016 (Docker EE) enables nativeDocker containers on Windows Server 2016. The Docker EE installation packageincludes everything you need to run Docker on Windows Server 2016.This topic describes pre-install considerations, and how to download andinstall Docker EE.

Looking for Release Notes?Get release notes for allversions here or subscribe to thereleases feed on the Docker Blog.

Docker Server Windows 10

Docker Universal Control Plane and Windows

With Docker EE, your Windows nodes can join swarms that are managedby Docker Universal Control Plane (UCP). When you have Docker EE installedon Windows Server 2016 and you have aUCP manager node provisioned, you can join your Windows worker nodes to a swarm.

Windows

Install Docker EE

Docker EE for Windows requires Windows Server 2016. SeeWhat to know before you install for afull list of prerequisites.

Docker Server Windows 2016

  1. Open a PowerShell command prompt, and type the following commands.

  2. Test your Docker EE installation by running the hello-world container.

(optional) Make sure you have all required updates

Some advanced Docker features (like Swarm) require that Windows is updated to include the fixes in KB4015217 (or a later cumulative patch).

Windows Server Install Docker

Select option 6) Download and Install Updates.

Use a script to install Docker EE

Use the following steps when you want to install manually, script automatedinstalls, or install on air-gapped systems.

  1. In a PowerShell command prompt, download the installer archive on a machinethat has a connection.

  2. Copy the zip file to the machine where you want to install Docker. In aPowerShell command prompt, use the following commands to extract the archive,register, and start the Docker service.

  3. Test your Docker EE installation by running the hello-world container.

Install a specific version

To install a specific Docker version, you can use the MaximumVersion and MinimumVersion flags. For example:

Update Docker EE

To update Docker EE on Windows Server 2016:

What to know before you install

  • What the Docker EE for Windows install includes: The installationprovides Docker Engine and theDocker CLI client.

About Docker EE containers and Windows Server 2016

Looking for information on using Docker EE containers?

  • Getting Started with Windows Containers (Lab)provides a tutorial on how to set up and run Windows containers on Windows 10or Windows Server 2016. It shows you how to use a MusicStore application withWindows containers.

  • Setup - Windows Server 2016 (Lab)describes environment setup in detail.

  • Docker Container Platform for Windows Server 2016 articles and blogposts on the Docker website.

Where to go next

  • Getting started provides an overview ofDocker for Windows, basic Docker command examples, how to get help or givefeedback, and links to all topics in the Docker for Windows guide.

  • FAQs provides answers to frequently askedquestions.

  • Release Notes lists componentupdates, new features, and improvements associated with Stable and Edgereleases.

  • Learn Docker provides general Docker tutorials.

  • Windows Containers on Windows Serveris the official Microsoft documentation.

Windows, Windows Server, install, download, ucp, Docker EE