Enable Hyper-V & Containers and Install Docker on Window Servers
Steps for enabling necessary features and installing necessary packages for deploying docker and containers on Windows Server 2016
Step 1: Install and Import Docker Package Provider
Use Find-Package
to verify the new docker package is available:
Step 2 (VM Only) : Enable Nested Virtualization
Make sure the virtual machine is down.
For Windows-VM:
For Xen-Server
Check if physical cpu has the flag vmx which stands for virtualization support enabled in BIOS for intel VT-x.
In the cfg file, add the following parameters:
Restart the virtual machine.
Step 3: Enable Hyper-V and Container Windows Features
In PowerShell, run the following commands:
Restart the virtual machine.
Step 4: Install Docker
Install-Package -Name Docker -Source DockerDefault
If you have not done the system update on the vm, you will get the following error:
WARNING: Cannot verify the file SHA256. Deleting the file.
make sure you have the latest update patch on the machine.
Last updated
Was this helpful?