containers (docker) in the new windows...

30

Upload: others

Post on 05-Jun-2020

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net
Page 2: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Containers (Docker) in the

New Windows Server Ronald Beekelaar - [email protected]

Page 3: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Introduction • Presenter

– MCT - since 19 years – MVP Virtual Machine technology - since 12 years – E-mail: [email protected]

• Work – Virsoft Solutions – Provide hosted Hyper-V lab and demo solutions

• See www.virsoft.net

– Virtualization consultancy

Page 4: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Session Objectives • Help you understand what Containers are

• Note: Containers are not in currently available Windows Server 2016 TP2

– Will be in TP3 "this summer"

– Microsoft Web site available since 11-May-2015

Page 5: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Topics • What are Containers? • Concepts • What is Docker? • Two Isolation Models

– Windows Server Containers / Hyper-V Containers

• Resources

• Not: live demo • Not: available today in Windows

Page 6: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Datacenter changes Containers

Page 7: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

What are Containers • Different approach for virtualization

• Is "operating system-level virtualization"

– Compare with VM: machine-level virtualization

• Fast: can deploy application within seconds

• Small: increase density and efficiency

– Run multiple containers within single cloud VM

Page 8: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Concepts • Run applications

– Compare: in OS / in VM / in App-V / in Container

• Repository

– Contains images

• Layers

– Images are read-only ("immutable")

– Write to sandbox

Page 9: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container Run-Time C:\Windows\*

Page 10: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container View

Sandbox empty

Page 11: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container View

Sandbox

C:\nodeJS

Page 12: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container View

Sandbox C:\nodeJs

C:\nodeJS

Page 13: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Application Framework

Container View

Page 14: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container View

Sandbox Empty

Page 15: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container View

Sandbox

C:\myApp

Page 16: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container View

Sandbox C:\myApp

C:\myApp

Page 17: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Image Creation

Local Repository

Container View

Page 18: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

What is Docker? • Technology exists long time

– 2000: FreeBSD jails – Aug 2008: Linux Containers LXC – Mar 2013: Docker

• Management of containers

• Google has lmctfy: let-me-contain-that-for-you

Page 19: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Why not use VMs for applications? • Size

– Lower density and efficiency

• Performance overhead

– Includes entire Windows OS inside VM

• Portability

Page 20: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Containers scenarios

Distributed Compute

𝑓 𝑥

Databases Web

Tasks Scale Out

Page 21: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Containers OS Server Core Nano Server

Born-in-the-cloud applications Traditional Applications

Highly Compatible Highly Optimized

Page 22: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

How to build containers • Use existing running container, and "commit"

• Or use Dockerfile to specify build instructions

– Text-file starts with: "from <container>"

Page 23: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Two isolation models • Windows Server Containers

• Hyper-V Containers

Page 24: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Run containers anywhere

Physical Machine

Hyper-V Hypervisor Server

Container

Virtual Machine Hyper-V Container

Hyper-V Container Server

Container Hyper-V Hypervisor

• On-premises / private cloud / Azure

Page 25: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Manage containers • Use PowerShell

• Use Docker tools

• Use other tools

Container Management PowerShell Others Docker

Page 26: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Resources • Windows Server Containers

– Available in Windows Server TP3 "this summer"

• Hyper-V Containers

– Available "later this year"

• Container information: – https://msdn.microsoft.com/virtualization/windowscontainers

– http://aka.ms/windowscontainers

Page 27: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Ignite - Presentation • See:

– https://channel9.msdn.com/events/ignite/2015/brk2493

Page 28: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Questions? • Or connect to [email protected]

Page 29: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net

Your feedback is important!

Scan the QR Code and let us know via the TechDays App.

Laat ons weten wat u van de sessie vindt via de TechDays App!

Scan de QR Code.

Bent u al lid van de Microsoft Virtual Academy?! Op MVA kunt u altijd iets nieuws leren over de laatste technologie van Microsoft. Meld u vandaag aan op de MVA Stand. MVA biedt 7/24 gratis online training on-demand voor IT-Professionals en Ontwikkelaars.

Page 30: Containers (Docker) in the New Windows Serverdownload.microsoft.com/download/7/F/F/7FF9136F-2C56-4252...Containers (Docker) in the New Windows Server Ronald Beekelaar - ronald@virsoft.net