Get started Bring yourself up to speed with our introductory content.

How Windows Server containers differ from Hyper-V containers

Windows administrators will need to learn how Windows Server containers differ from Hyper-V containers, and why one might be preferred over the other.

Containers are one of the most significant new features in Windows Server 2016. They are also among the most confusing,...

for two reasons. First, although containers have existed in the open-source world for quite some time, they are a new concept to Windows. Second, Microsoft is simultaneously introducing two different types of containers: Windows Server Containers and Hyper-V Containers.

To understand how containers work, you need a basic understanding of server virtualization. Containers are not the same thing as virtual machines (VMs), but they are a form of virtualization.

More powerful servers made virtualization possible

At one time, server hardware was relatively modest in its capabilities. Workloads needed dedicated hardware to run. Over time, server hardware became far more powerful; many applications consume only a small fraction of the resources that a modern server can deliver. Server virtualization was introduced to make better use of the hardware by allowing multiple workloads to run simultaneously within VMs. These VMs acted as isolation boundaries, with each virtual machine having its own dedicated operating system, virtual hard disk, memory allocation, etc.

Over time, the pendulum began to swing in the other direction. Whereas VMs were originally created to improve hardware utilization, users began spinning up so many VMs that the hardware once again became the limiting factor. A physical server can only host so many workloads before resources run out.

As server virtualization matured, hypervisor vendors looked for ways to increase the number of VMs that a physical server could accommodate. These vendors introduced features such as thinly provisioned virtual hard disks and memory overcommitment. Containers can be thought of as being similar to these types of features because they can help a server to accommodate additional workloads.

Containers trim virtualization bulk

This raises the question of how virtual servers and containers differ from one another. A virtual server is designed to be self-contained with its own operating system, applications and hardware resources. If a problem occurs inside of a VM, that problem would not affect other VMs because the virtual server acts as an isolation boundary.

The problem with VMs is they are larger than they really need to be. Think of an application server, for example. That application server contains the application and a dedicated operating system. This operating system consumes storage space, memory, CPU cycles and other hardware resources. While this might not be an issue for hosts with a small number of VMs, imagine if a host had to run a large number of VMs and all of those VMs were running the same operating system.

Containers seek to solve this size issue by using a single operating system instance that all the containers share. A container is similar to a virtualized application in that it stores the application's binaries and configuration files, but only stores operating system components the application modifies, such as registry entries or application specific drivers.

Why Microsoft offers container choices

Why is Microsoft introducing Windows Server Containers and Hyper-V Containers? There are a number of different answers to this question, but most come down to trust.

When Windows Server Containers are used, the containers leverage the host operating system. This might be OK for running trusted applications, but it would not be desirable for running an untrusted application. Hyper-V Containers provide an extra isolation boundary where each container has its own copy of the operating system binaries. The only real difference between a Hyper-V Container and a Hyper-V VM is that Hyper-V Containers can be managed by Docker, while Hyper-V VMs cannot.

Containers are a mechanism for improving efficiency through the sharing of operating system binaries. Not only does this approach improve host capacity, it also makes patch management easier because there are fewer operating systems to patch.

Next Steps

How to protect Hyper-V containers

Microsoft and Docker talk partnership

Microsoft jumps in with container technology

This was last published in November 2015

PRO+

Content

Find more PRO+ content and other member only offers, here.

Join the conversation

3 comments

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

What are some of the pros and cons you foresee with Windows Server Containers?
Cancel
Nicely highlighted the details.

With the new features of Hyper-V
in Windows server 2016 been released, Windows containers are similar
like Linux containers. Every application is containerized and operate in
their own user-mode and isolated container run on a shared host OS.

Here is a similar blog that talks about the detail comparison of Hyper-v Containers with windows Containers.

http://social.technet.microsoft.com/wiki/contents/articles/33664.windows-containers-vs-hyper-v-containers-in-windows-server-2016.aspx
Cancel
What made containers possible on Linux was cgroups with namepace isolation and with Selinux policy's you can make a platform fairly secure. How much less or more secure can you make a windows platform running containers/docker natively?
Cancel

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchEnterpriseDesktop

SearchVirtualDesktop

Close