Requirements

To get started with Docker on Windows Server Microsoft have created a PowerShell script which configures your environment to enable container-related OS features and install the Docker runtime.

The server is automatically reboot when the script is run.

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1
.\install-docker-ce.ps1

After the installation script has completed, you can verify the installation by running

docker --version

References

Install Docker CE oInstall Docker CE on Windows Servern Windows Server