As of May 23rd 2023 the backing service for this provider has been shutdown. You can find alternative options at Windows Container Documentation - Setup Environment.
For more information on the deprecation please see the following blog posts: Updates to the Windows Container Runtime support Reminder - Updates to Windows Container Runtime Support
In the near future this repo will be marked archived.
The Docker installer for Windows is now available in an online package repository. They can be found and installed using the Docker provider of PackageManagement (a.k.a. OneGet) PowerShell module. The provider needs to be installed before using it. The following PowerShell cmdlets can be used to install the provider.
Import-Module -Name DockerMsftProvider -Force
Import-Packageprovider -Name DockerMsftProvider -Force
New installation:
Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose
Upgrade to the latest version of docker:
Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose -Update
Once the provider is installed and imported, you can search, download, or install Docker using OneGet PowerShell cmdlets:
Register-PackageSource -ProviderName DockerMsftProvider -Name AlternateSource -Location https://contoso.com/metaData.json
Get-PackageSource -ProviderName DockerMsftProvider
Find-Package -providerName DockerMsftProvider
Find-Package -providerName DockerMsftProvider -AllVersions
Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose
Find-Package -ProviderName DockerMsftProvider | Install-Package -Verbose
You can download and save Docker installer without installation, using Save-Package. This cmdlet accepts pipeline result from the search cmdlets. If you have multiple sources, please provide the source for download.
Save-Package -ProviderName DockerMsftProvider -Name Docker -Path .\temp -MinimumVersion 1.2.3
Find-package -ProviderName DockerMsftProvider | Save-Package -Path .
Get-Package -ProviderName DockerMsftProvider
Uninstalls Docker from the local machine.
Uninstall-Package -ProviderName DockerMsftProvider -Name dOcKeR -Verbose
Updates current installation of docker with the requested version
Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose -Update
Once docker is installed, you will need to restart the machine
After the machine is restarted, docker service needs to be in the running state
After you have installed the required KB (KB3176936 or higher) you will need to restart the machine
1.0.0.8
Initial release
Bug fixes
Bug fixes
Bug fixes
Public release
Added OS version check instead of KB check
Updated the restart message after install
Update the logging while uninstall
Fixed a bug in how dockerd was being registered as a service
Fixed a bug where system env vars would be mangled when installing/uninstalling Docker on top of another.
Fixed readme instruction formatting for easier copy/paste/execute
Fixed a bug where installation of Docker fails over a slow network connection.
Added more helpful error text towards failed installation attempts on Windows 10 client machines.