Installing Docker
In this section, you will install Docker Desktop on your Windows machine. Docker is a software company that offers a containerization platform. There are other container software providers as well, but Docker is the most popular one.
In Windows, you can install Docker with the WSL (short for Windows Subsystem for Linux) backend or the Hyper V backend. The WSL backend is preferred, as WSL 2 provides better performance than the Hyper-V backend. You need a Windows 10 or Windows 11 computer with a 64-bit processor, 4 GB RAM, and hardware virtualization support must be enabled. You can find more details at https://docs.docker.com/desktop/install/windows-install/. You can also find the installation setup in this URL.
Once you download the Docker Desktop Installer (Docker Desktop Installer.exe
) and execute it, the setup will check your system for the prerequisites and then show a prompt like this:
Figure 2.1: Docker Desktop installation screen...