Sie sind auf Seite 1von 23

Module 6

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 (changes go
Repository here)

App App image C:\MyApp C:\MyApp


image C:\Windows

Container Container
app Container
C:\Windows view
image app 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 Base
image 1 image 2
Host OS kernel kernel 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 Nano Server image Nano Server image
Server
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 prepare


for managing containers using 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 Hyper-V 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

With Docker, you can:


• Create containers
• Remove containers
• Browse the Docker Hub
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 Hyper-V 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

Das könnte Ihnen auch gefallen