Installation of Docker for Windows Users

This is a step-by-step tutorial on how to install Docker on a Windows operating system. Docker is an open-source technology that allows you to create, run, test, and deploy distributed applications inside software containers.

Attention: The installation process will require a system restart. Ensure you've saved all your work before proceeding.

Prerequisites

  • A computer running 64-bit Windows 10 Pro, Enterprise, or Education (Build 15063 or later), or Windows Server 2019.

  • Hardware-assisted virtualization and Second Level Address Translation (SLAT) must be enabled. (Let’s hope you have it enabled).

  • The Hyper-V feature and Containers feature must be enabled. (Let’s also hope you have it enabled).

  • Administrative access to your machine. (It’s the password).

Steps

Step 1: Download Docker Desktop for Windows

  1. Navigate to the Docker Hub website at the following URL: https://hub.docker.com/editions/community/docker-ce-desktop-windows

  2. Click on the "Get Docker" button to download the Docker Desktop for Windows installer.

 Click to Expand

Step 2: Install Docker Desktop on Windows

  1. Navigate to your Downloads folder and double-click the Docker Desktop Installer.exe file you downloaded.

  2. Follow the instructions in the installer, accept the license, authorize the installer, and proceed with the installation.

 Click to Exapnd

  1. When prompted, authorize Docker Desktop Installer with your system password during the installation process.

 Click to Exapnd

  1. Once done, you will see the following screen: continue without signing in,

Step 3: Verify the Docker Installation

  1. Open the PowerShell.

 Click to Expand

  1. Type the following command: docker run hello-world. This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits.

The output should look something like this:

Conclusion

Congratulations! If you witnessed the "Hello from Docker!" message, you've successfully installed Docker on your Windows machine. You're now ready to explore further, such as setting up RStudio.


Troubleshooting

  1. Docker desktop requires a newer wsl kernel version on Windows.

    1. Watch this video: https://www.youtube.com/watch?v=zvnFtNlD1eo

    2. Or Just simply type the following command in the PowerShell

      1. wsl --install
  2. Virtualization error,

    1. https://www.youtube.com/watch?v=t8f-zw_wcWM&t=42s

If you don’t fell confident on how to enable virtualization, please leave it; we will fix it for you later.