Mastering Windows Server 2016 Hyper-V

(Romina) #1

Chapter 10: Containers and Docker


Explain the differences between Windows containers and Hyper-V
containers. Windows containers provide a user-mode level of isolation from other
containers. Hyper-V containers run the Windows container in a dedicated, utility VM
that is automatically managed and provides kernel-mode-level isolation from other
containers.


Master  It  When    would   Hyper-V containers  be  used    over    Windows containers?
Solution Anytime other containers on the same container host may not be trusted
is a good use case for Hyper-V containers to gain complete isolation.

Manage Containers Containers are managed using the docker CLI. While a
PowerShell module is available this module utilizes the Docker REST API and the
same management structure as the docker CLI. This means management performed
either with the docker CLI or PowerShell is working on a single management
platform,


Master  It  Can Linux   applications    run on  Windows containers?
Solution No. Containers provide isolation. However, the applications within the
container run on the shared kernel, which is Windows. This means that a Linux
application cannot run on a Windows container, as Linux applications are not
compatible with a Windows kernel.
Master It Can the Docker client on Windows manage Linux containers?
Solution Yes, the Docker client works across platforms, meaning that both the
Windows Docker client and the PowerShell can manage Windows and Linux
container instances.
Free download pdf