Deploying and Managing Windows and Hyper-V Containers

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 25

Module 10

Deploying and managing Windows


and Hyper-V containers
Module Overview

Overview of containers in Windows Server 2016


Preparing to deploy containers
• Installing, configuring, and managing containers
by using Docker
Lesson 1: Overview of containers in Windows
Server 2016

Overview of Windows Server containers


Overview of Hyper-V containers
Usage scenarios
• Installation requirements
Overview of Windows Server containers

Empty
Sandbox
Repository (changes go here)

App image C:\MyApp C:\MyApp


App image
C:\Windows

Container Container
Container app
app image C:\Windows view
image
Overview of Hyper-V containers

Windows containers Hyper-V containers

Container Container Container Container Container


app 1 Container Container
app 2 app 3 app 4 app 5
app 6 app 7

Bin/lib Bin/lib
Binaries/libraries Binaries/libraries
User mode User mode
User mode

Base image Base image


1 kernel 2 kernel
Host OS kernel

Hyper-V VM Hyper-V VM

Host
Usage scenarios

Some common usage scenarios for Windows


containers include:
• Windows Server containers for:
• Hosting stateless apps
• Rapid test deployment

• Hyper-V containers for:


• Multiple tenants
• Single tenants
• Independent lifecycle management
Installation requirements

You should consider the following when planning


for Windows containers:
• Windows container host requirements
• Virtualized container host requirements
• Supported scenarios

Host OS Windows Server Hyper-V container


container
Windows Server 2016 Full UI Server Core image Nano Server image
Windows Server 2016 Core Server Core image Nano Server image
Windows Server 2016 Nano Server Nano Server image Nano Server image
Windows 10 Insider releases Not available Nano Server image
Lesson 2: Preparing to deploy containers

Preparing to deploy Windows Server containers


Preparing to deploy Hyper-V containers
• Deploying package providers
Preparing to deploy Windows Server containers

• To prepare a Nano Server:


• Create a Nano Server virtual hard disk file for containers
• Proceed with the steps below

• Use the following steps to prepare your Windows Server


host for containers:
1. Install the container feature*
2. Create a virtual switch
3. Configure network address translation (NAT) settings
4. Configure media access control (MAC) address spoofing

* This step is not required if you deploy on a Nano Server


Preparing to deploy Hyper-V containers

• To prepare a Nano Server:


• Create a Nano Server virtual hard disk file for containers
• Proceed with the steps below

• Use the following steps to prepare your Windows Server host


for containers:
1. Install the container feature*
2. Enable the Hyper-V role*
3. Enable nested virtualization
4. Configure virtual processors
5. Create a virtual switch
6. Configure NAT settings
7. Configure MAC address spoofing

* This step is not required if you deploy on a Nano Server


Deploying package providers

PackageManagement PackageManagement
End user providers
Package sources
core

PowerShellGet PowerShell gallery


Discovery

ContainerImage NuGet gallery

PackageManagement
Install/uninstall DockerMsftProvider
Windows Container
Windows PowerShell
OS Image gallery
cmdlets
Windows Package for
NuGet
Nano Server gallery
Inventory
… …
Lesson 3: Installing, configuring, and managing
containers by using Docker

What is Docker?
Docker support for Windows Server 2016
Docker components
Usage scenarios
Installing and configuring Docker
Overview of management with Docker
Overview of Docker Hub
Docker with Azure
• Demonstration: Deploying containers by using
Docker
What is Docker?

App 1 App 2 App 3

Bins/libs Bins/libs Bins/libs

Docker Engine

OS

Infrastructure
Docker support for Windows Server 2016

The Docker Engine for Windows Server requires


Windows Server 2016, and it includes the
following key features:
• No cross-platform containerization
• Create and manage containers using the Docker tool set
Docker components

Docker terminology:
• Image, container, Dockerfile, build
Docker toolbox:
• Docker Engine, Docker Compose, Docker Machine,
Docker client, Kitematic, Docker Registry, Docker Swarm
Docker solutions:
• Docker Hub, Docker Trusted Registry, Universal Control
Panel, Docker Cloud, Docker Datacenter
Usage scenarios

Some common usage scenarios for Docker


include:
• Container orchestration
• Development operations (DevOps)
• Microservices
Installing and configuring Docker

• To install Docker on Windows Server 2016:


1. Install the NuGet package provider
2. Use NuGet to install Docker
3. Restart the container host
• To install Docker on Nano Server:
1. Create a remote Windows PowerShell session
2. Install Windows updates
3. Install Docker
4. Configure security settings
5. Install the Docker client
Overview of management with Docker

• With Docker, you can:


• Create containers
• Remove containers
• Manage containers
• Browse Docker Hub to access and download prebuilt
images
• In most organizations, the most common Docker
management tasks include:
• Automating the creation of container images by using
Dockerfile on Windows OSs
• Managing containers by using Docker
• Using docker run
Overview of Docker Hub
Docker with Azure
Demonstration: Deploying containers by using Docker

In this demonstration, you will see how to:


• Install the NuGet package provider
• Install Docker
• Download an image
• Deploy a new container
• Manage the container
Lab: Installing and configuring containers

Exercise 1: Installing Docker


• Exercise 2: Installing and configuring a container

Logon Information
User name: Adatum\Administrator
Password: Pa55w.rd
Physical machine: 20743B-LON-HOST1
Virtual machines: 20743B-LON-NVHOST2
20743B-LON-DC1-B
20743B-NAT
Estimated Time: 45 minutes
Lab Scenario

The DevOps team at A. Datum Corporation wants


to explore the containers feature to see if it can
help reduce the time it takes to deploy new apps
and to simplify the process of moving apps to the
cloud. The team decided to evaluate Windows
Server containers and the process for deploying
IIS within a container.
Lab Review

• When using the Nano Server Recovery Console,


which two fundamental components can you
configure?
Module Review and Takeaways

Review Questions
• Common Issues and Troubleshooting Tips

You might also like