Setting up a Oracle Virtual Box VM for a Windows Docker Test Server

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:

Machine -> New...

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).

cd 'C:\Program Files\Oracle\VirtualBox\'
.\VBoxManage.exe modifyvm "Docker Test Server" --nested-hw-virt on

Setting up the Server:

Setting up the Login (first boot)....

Checking the Configuration by using "sconfig"...

Setting up Docker...

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProviderInstall

Restarting VM...

Restart-Computer -Force

Checking docker...

docker version

Reference:

How to Install a Windows Server Container Host
In this blog post, I want to quickly guide you through how you can install a Windows Server Container Host running Docker. This guide will help you set up, install, and run Windows Containers on Windows Server. In my example, I will install a container host on a Windows Server, version 2004, which i…

https://renenyffenegger.ch/notes/Companies-Products/Oracle/VM-VirtualBox/command-line/PowerShell/unattended-os-installation

Run a container with a gMSA
How to run a Windows container with a Group Managed Service Account (gMSA).
Build and run your first Docker Windows Server container
https://dscottraynsford.wordpress.com/2016/10/15/install-docker-on-windows-server-2016-using-dsc/
How To Set Up an IIS Web Site on Windows Server Containers -- Microsoft Certified Professional Magazine Online
Adam walks you through the process of setting up Windows containers and using them to run an IIS application.