Installing Docker on Window 10

Tushar Soam
3 min readOct 5, 2020

--

Want to learn docker?……..Want to get your hands dirty by executing some docker commands locally?……. Want to run a sample application on a Docker container?….. You would need a Docker Environment!!!!!!!

Come on then, let's install Docker Desktop locally on your Windows 10 machine.

Note: I am installing it on Windows 10 Home version. I am not 100% sure if these same steps would work as it is on Windows Pro or Enterprise Edition.

  1. Go to this Docker Hub URL and download the “Stable” version of Docker Desktop for Windows:

2. Once the installer gets downloaded, double-click on it to run the “Docker Desktop Installer.exe” and select both the checkbox as shown below:

3. Click “Ok” and wait for the installation to get completed.

4. Click “Close and restart” for the changes to take effect.

5. Once your machine gets restarted you might be prompted for a “WSL2 installation is incomplete” alert as below:

6. Download and install the WSL2 Linux Kernel from this URL as shown below: (You will be prompted for elevated permissions, select ‘yes’ to approve this installation)

7. Once the WSL2 Linux Kernel installation gets complete, restart your machine and run the “Docker Desktop” app from the “Start” menu. Validate that the docker is in “running” state as shown:

8. Open a command-line terminal like PowerShell, run below command (make sure that you have an active internet connection for downloading the docker images)

docker run -d -p 80:80 docker/getting-started

9. Once you run the above command, you will start seeing your container on the Docker Desktop app:

You are all set now :).

Get your developer hats on & start experimenting with Docker commands.

--

--

Tushar Soam

Techie: Java | Spring Boot/Batch/MVC | Docker | Camunda BPM | Maven | Gradle | OpenStack | Ansible | MySQL | Hibernate | RESTful API’s