0% found this document useful (0 votes)
98 views23 pages

Deploying and Managing Windows and Hyper-V Containers

This module provides an overview of containers in Windows Server 2016 and how to deploy and manage Windows and Hyper-V containers. It discusses the key components of containers, how to install and configure Docker, and demonstrates deploying containers using Docker. The module contains 3 lessons that cover an overview of containers, deploying Windows and Hyper-V containers, and installing, configuring, and managing containers using Docker.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views23 pages

Deploying and Managing Windows and Hyper-V Containers

This module provides an overview of containers in Windows Server 2016 and how to deploy and manage Windows and Hyper-V containers. It discusses the key components of containers, how to install and configure Docker, and demonstrates deploying containers using Docker. The module contains 3 lessons that cover an overview of containers, deploying Windows and Hyper-V containers, and installing, configuring, and managing containers using Docker.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Module 10

Deploying and managing Windows


and Hyper-V containers
Module Overview

Overview of containers in Windows Server 2016


Deploying Windows Server and Hyper-V 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: Deploying Windows Server and Hyper-V
containers

Deploying Windows Server containers


Deploying Hyper-V containers
Managing Windows Server and Hyper-V containers
by using Windows PowerShell
• Demonstration: Installing the Containers feature
and preparing for Docker
Deploying Windows Server containers

• To prepare a Nano Server:


• Create a Nano Server virtual hard disk (VHD) 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 NAT settings
4. Configure MAC address spoofing
5. Install container operating system images

* Step not required if you deploy to a Nano Server


Deploying Hyper-V containers

• To prepare a Nano Server:


• Create a Nano Server virtual hard disk (VHD) 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
8. Install container operating system images

* Step not required if you deploy to a Nano Server


Managing Windows Server and Hyper-V
containers by using Windows PowerShell
• You can use Windows PowerShell or Docker to
administer your containers
• Typical tasks are:
• Creating containers
• Starting containers
• Connecting to containers
• Stopping containers
• Removing containers
Demonstration: Installing the Containers feature
and preparing for Docker

In this demonstration, you will see how to:


• Install the Containers feature
• Prepare for Docker
Lesson 3: Installing, configuring, and managing
containers by using Docker

What is Docker?
Docker support on 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 on Windows Server 2016

The Docker Engine for Windows Server requires


Windows Server 2016, and it includes the following
key points:
• No cross-platform containerization
• Two ways to manage containers in Windows OS
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
• DevOps
• Microservices
Installing and configuring Docker
Overview of management with Docker

• With Docker, you can:


• Create containers
• Remove containers
• Manage containers
• Browse the 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 OS
• 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:


• View base images
• View sample images from Docker Hub
• Download prebuilt Microsoft/IIS Docker images
• Deploy a new container with the prebuilt image
• Manage the container with Docker
Module Review and Takeaways

• Review Questions

You might also like