You have a server named Server1 t
hat runs Windows Server 2016.
You plan to deploy Internet Information Services (IIS) in a Windows container.
You need to prepare Server1 for the planned deployment.
Which three actions should you perform? Each correct answer presents part of the solutio
n.
A. Install the Container feature.
B. Install Docker.
C. Install the Base Container Images.
D. Install the Web Server role.
E. Install the Hyper-V server role.
Explanation:
(A): The container feature needs to be enabled before working
with Windows containers. To do so run the following command in an elevated PowerShell session.
Enable-WindowsOptionalFeature -Online -FeatureName containers -All
(B): Docker is required in order to work with Windows containers.
Note: First install the OneG
et PowerShell module.
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Next you use OneGet to install the latest version of Docker.
Install-Package -Name docker -ProviderName DockerMsftProvider
(C): Install Base Container Images
Windows
containers are deployed from templates or images. Before a container can be deployed, a container base OS image needs to be downloaded. The following commands will download the Nano Server base image.
Pull the Nano Server base image.
docker pull microsoft
/nanoserver