In this bloggpost I would like to explain how to set up a Docker Server (based on a Windows operating system). I've been researching this because I'm currently working on a project where I'm going to try to port a web application into a container.
To set up the test environment I decided to use the following product "Oracle Virtual Box".
So let's start to set this up...
Open your Virtual Box and create a new VM:
![](https://it-infrastructure.solutions/content/images/2020/11/image-4.png)
Machine -> New...
![](https://it-infrastructure.solutions/content/images/2020/11/image-5.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-6.png)
After this wizard-driven creation process, the created VM must be modified so that virtualisation technologies can be run on it.
This is only possible via a CLI (PowerShell / CMD).
![](https://it-infrastructure.solutions/content/images/2020/11/image-8.png)
cd 'C:\Program Files\Oracle\VirtualBox\'
.\VBoxManage.exe modifyvm "Docker Test Server" --nested-hw-virt on
![](https://it-infrastructure.solutions/content/images/2020/11/image-7.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-9.png)
Setting up the Server:
![](https://it-infrastructure.solutions/content/images/2020/11/image-10.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-11.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-12.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-13.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-14.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-15.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-16.png)
Setting up the Login (first boot)....
![](https://it-infrastructure.solutions/content/images/2020/11/image-17.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-18.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-20.png)
Checking the Configuration by using "sconfig"...
![](https://it-infrastructure.solutions/content/images/2020/11/image-22.png)
![](https://it-infrastructure.solutions/content/images/2020/11/image-23.png)
Setting up Docker...
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProviderInstall
![](https://it-infrastructure.solutions/content/images/2020/11/image-24.png)
Restarting VM...
Restart-Computer -Force
Checking docker...
docker version
![](https://it-infrastructure.solutions/content/images/2020/11/image-25.png)
Reference:
![](https://www.thomasmaurer.ch/wp-content/uploads/2020/06/How-to-Install-a-Windows-Server-Container-Host.jpg)
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)
Build and run your first Docker Windows Server container
![](https://mcpmag.com/-/media/ECG/VirtualizationReview/Images/IntroImages2019/WindowsBuildingBlue.jpg)