1CONFIDENTIAL
Microsoft Containers in
Windows Server 2016
Dzmitry Durasau
JANUARY 20, 2016
2CONFIDENTIAL
MICROSOFT CONTAINERS
IN WINDOWS SERVER
2016
DZMITRY DURASAU
JANUARY 20, 2016
3CONFIDENTIAL
Hello
Speaker:
4CONFIDENTIAL
• Containerization in Windows Server 2016
• Windows Container Under the Hood
• Hello, World!
Agenda
5CONFIDENTIAL
CONTAINERIZATION IN
WINDOWS SERVER 2016
SECTION 1
6CONFIDENTIAL
Containers – no magic inside
7CONFIDENTIAL
Isolation Technologies
8CONFIDENTIAL
• Multiple containers run on a host with isolation provided
through namespace and process isolation technologies.
Windows Server Containers
9CONFIDENTIAL
• Multiple containers run on a host, however each container
is run inside of a utility virtual machine. This provides
kernel level isolation between a Hyper-V container, the
container host, and any other containers running on the
container host.
Hyper-V Containers
10CONFIDENTIAL
Windows and Hyper-V Containers
11CONFIDENTIAL
Container Management Stack
• PowerShell
• Docker
12CONFIDENTIAL
Compatibility
• Windows Container can run only on Windows Host
• Windows Containers and Hyper-V Containers are
compatible
• Docker Containers and PowerShell Containers are not
compatible
• Docker Containert can be managed via PowerShell in
a restricted way (from TP4)
13CONFIDENTIAL
Containers Deployment
Nested Virtualization in Windows Server
2016
14CONFIDENTIAL
Windows Containers in Azure
15CONFIDENTIAL
WINDOWS CONTAINER:
UNDER THE HOOD
SECTION 2
16CONFIDENTIAL
Installation
17CONFIDENTIAL
Manage Containers with PowerShell
18CONFIDENTIAL
Windows Container Anatomy
• Container Runtime
• Container Image
19CONFIDENTIAL
Windows Containers Image: WIM Package
20CONFIDENTIAL
Install WIM Image
21CONFIDENTIAL
Container OS Image
22CONFIDENTIAL
Create Container
23CONFIDENTIAL
Containers
24CONFIDENTIAL
25CONFIDENTIAL
Containers Structure
26CONFIDENTIAL
Start Container
27CONFIDENTIAL
Container Start Procedure
28CONFIDENTIAL
Processes
29CONFIDENTIAL
CPU and RAM
30CONFIDENTIAL
Manage Resources
31CONFIDENTIAL
Network
32CONFIDENTIAL
Hyper-V Containers Anatomy
33CONFIDENTIAL
34CONFIDENTIAL
HELLO, WORLD!
SECTION 3
35CONFIDENTIAL
Windows Container Restrictions
36CONFIDENTIAL
https://msdn.microsoft.com/en-
us/virtualization/windowscontainers/about/work_in_progress
37CONFIDENTIAL
Demo
38CONFIDENTIAL
39CONFIDENTIAL
40CONFIDENTIAL
41CONFIDENTIAL
42CONFIDENTIAL
Demo Code
43CONFIDENTIAL
Thank you!
44CONFIDENTIAL
• http://www.creationline.com/lab/11385
• http://blog.engineer-memo.com/2015/08/21/windows-server-containers
• http://blogs.msdn.com/b/msgulfcommunity/archive/2015/09/08/why-
windows-server-containers-and-why-you-need-to-look-at-containers-hands-
on.aspx
• https://msdn.microsoft.com/en-
us/virtualization/windowscontainers/about/work_in_progress
• http://blogs.technet.com/b/rutechnews/archive/2015/09/16/24-171-windows-
server-2016-techincal-preview-3-187.aspx
• https://www.techdays.ru/videos/10093.html
• https://channel9.msdn.com/Blogs/TechDays-Russia/Containers-in-Windows-
Server-2016
Links and credits
45CONFIDENTIAL
Questions?
Email:
dzmitry_durasau@epam.com

Tech talk Windows Containers 2016 Dzmitry Durasau EPAM TechTalk

Editor's Notes

  • #8 Технология контейнера – это по сути виртуализация на уровне операционной системы
  • #32 netsh advfirewall set allprofiles state off
  • #36 Lab Config Notes: Mount VHD to drive V: (or any other letter) If UEFI: bcdboot v:\windows /s v: If BIOS: bcdboot v:\windows Mount VHD Mount-DiskImage <path_to_ISO_with_Windows_Server_2016> Install-WindowsFeature Server-Gui-Shell –Restart -Source wim:D:\sources\install.wim:4 Install-WindowsFeature Server-Gui-Mgmt-Infra -Source wim:D:\sources\install.wim:4