Chapter 4 Flashcards
What is namespace isolation?
A feature of containers that ensures they only have access to the resources available to them
What is resource governance?
A feature of containers that limits their CPU, memory, network, and other resource usage
What are container images?
A collection of the specific files needed to run a program, excluding the unchanged parts of the OS
What are the two types of containers available in Windows Server and what are their differences?
Windows Server Containers operate in user mode, sharing everything with the host OS; Hyper-V containers operate on an isolated copy of the host kernel that is separated by the hypervisor, providing more security for hostile environments
What two components are necessary to run Windows Server Containers on Windows Server?
The Containers feature for running containers, and Docker for creating and managing containers
Where must Windows be installed to run containers?
On the computer’s C drive for Windows Server Containers, and anywhere for Hyper-V containers
What components are necessary to run Hyper-V containers?
The Containers feature and Hyper-V role (though the management tools are unnecessary)
What are the requirements to run Hyper-V containers in a Hyper-V VM?
Both the host and VM must run Server 2016, and the CPU must be an Intel with VT-x and Extended Page Tables (EPT) support
How do you enable nested virtualization?
Run the PowerShell cmdlet Set-VMProcessor -VMName -ExposeVirtualizationExtensions $true; then disable Dynamic Memory, set virtual processors to 2, and turn on MAC address spoofing
What two files are required to run Docker?
Dockerd.exe (the service) and Docker.exe (shell used to manage containers)
What are Dockerfiles?
Script files with instructions for creating container images
What is Docker Hub?
A cloud-based registry that enables Docker users to link to image and code repositories, as well as build and store their own images
What is Docker Cloud?
A cloud-based service to deploy containerized applications
How is docker installed on Windows Server?
Install-Module -Name dockermsftprovider -Repository psgallery -Force ; Install-Package -Name docker -Providername dockermsftprovider ; Restart-Computer -Force
What extra configuration is recommended for installing Docker on Nano Server?
Open the firewall and configure Docker to allow for management from a remote client
What firewall rule must be added to permit Docker client access?
Open port TCP 2375 for the Docker daemon
What setting changes where Docker images and containers are stored?
Set graph to c:\folder
What setting disables NAT in Docker?
Set bridge to none
What setting changes the permissions group for managing Docker?
Set group to the group name
What setting changes the Docker DNS server addresses?
Set dns to the addresses
How can you install the Docker PowerShell modules?
Register-PSRepository -Name dockerps-dev -SourceLocation https://ci.appveyor.com/nuget/docker-powershell-dev ; Install-Module docker -Repository dockerps-dev -Scope currentuser
How do you download a Server Core Docker image?
docker pull microsoft/windowsservercore
How can you view all the Microsoft Docker images available?
docker search microsoft
How can you download previous versions of a Docker image?
Use the -a parameter with the docker pull command
How do you tag an image with Docker?
Run docker tag or run docker build -t