Skip to content

Installing Docker

lordmilko edited this page Oct 5, 2020 · 2 revisions

In theory installing Docker should be as simple as following this simple three-step process.

In the event you run into issues verifying the integrity of the Docker installer's zip file, you can work around this by executing the following steps

  1. Execute the commands to install Docker on Windows as normal (if you haven't already)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module DockerMsftProvider -Force
Install-Package Docker -ProviderName DockerMsftProvider -Force -Verbose
  1. If you get an error in the above step, take note of the name of the file that couldn't be verified (as of writing Docker-19-03-1.zip), then execute the following commands, substituting 19-03-1 for whatever the latest version is
mkdir $env:temp\DockerMsftProvider
cd $env:temp\DockerMsftProvider
Start-BitsTransfer -Source https://dockermsft.blob.core.windows.net/dockercontainer/docker-19-03-1.zip
Get-FileHash -Path $env:temp\DockerMsftProvider\Docker-19-03-1.zip -Algorithm SHA256
Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose

When the docker package is installed this time, it will see the package has already been downloaded and will use it without re-downloading it.

  1. Restart your server Docker was installed on

  2. Test that the Docker Engine service automatically starts whenever you restart the computer. If not, you may wish to consider changing it to Automatic (Delayed Start)

Clone this wiki locally