Install docker on Windows 10 make sure your Windows 10 is Windows 10 Pro otherwise you cannot install docker on Windows 10. The second thing I am going to use chocolatey, that is another automation tool for Microsoft Windows to install and uninstall packages.
Install chocolatey, if you haven’t yet
Here’s a video that will help you install chocolatey on Microsoft Windows and Servers using powershell with admin rights. I created this video sometime back, so I thought of putting it on this page.
Now make sure chocolatey is installed. Go ahead and relaunch powershell or command prompt with admin right and check if chocolatey is installed by typing choco in the terminal window.
Commands to install Chocolatey on Windows, run them one by one in your PowerShell with admin rights.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
To check if chocolatey has been installed on your Windows 10, please run the following command
Let’s download and install Docker CLI with choco
I assume that you already have launched your powershell or command prompt with admin rights. To download and install Docker CLI with chocolatey write the following command in the terminal window.
choco install docker-cli -y
This command will go ahead and download Docker CLI with your permission and install it. Let me take a couple of minutes depending on the internet speed.
was it installed let’s go ahead and check if Docker help command is available. Simply type the following command in the powershell for command prompt.
If you get lots of Docker commands, command options and command flags that means docker-cli is successfully installed on your Microsoft Windows 10 Pro and you are good to go.