
Finally, run the following command to start Docker:.Install-Package -Name Docker -ProviderName DockerMsftProvider -Update -Force When you're ready to upgrade, run the following command:.Find the current version using the following command:įind-Package -Name Docker -ProviderName DockerMsftProvider.Get-Package -Name Docker -ProviderName DockerMsftProvider Check the installed version using the following command:.When PowerShell asks you whether to trust the package source 'DockerDefault', type A to continue the installation.Īfter the installation completes, restart the computer.

Install-Package -Name docker -ProviderName DockerMsftProvider
Installing docker toolbox windows 10 home install#
Use the PackageManagement PowerShell module to install the latest version of Docker. To do this, run the following command: # Set the TLS version used by the PowerShell client to TLS 1.2. If you get an error opening the PowerShell gallery, you may need to set the TLS version used by the PowerShell client to TLS 1.2. If you're prompted to install the NuGet provider, type Y to install it as well. Install-Module -Name DockerMsftProvider -Repository PSGallery -Force Open an elevated PowerShell session and install the Docker-Microsoft PackageManagement Provider from the PowerShell Gallery.

This provider enables the containers feature in Windows and installs the Docker engine and client.

To install Docker on Windows Server, you can use a OneGet provider PowerShell module published by Microsoft called the DockerMicrosoftProvider.
