The first step is to do all the windows updates
This takes as long as it takes so if you can use an image that already has the updates use that.
install-module -Name dockermsftprovider -Repository psgallery -Force
press enter to install the nuget provider if asked.
find-package docker | install-package
after the package has been installed restart the computer and check if the service has started.
with get-service docker
Note: If you are doing this from AWS or Azure there are images that already have docker installed.