DEV Community

Cover image for Docker Installation in Windows: Easy for beginners
Rakib Hasan
Rakib Hasan

Posted on

Docker Installation in Windows: Easy for beginners

Docker is a powerful platform that enables developers to create, deploy, and run applications in containers. Containers allow you to package an application with all its dependencies, making it portable and consistent across different environments. If you're new to Docker and want to get started on Windows, this beginner step-by-step guide will help you through the installation process.

Step 1: Check System Requirements

Before installing Docker, ensure your system meets the following requirements:

  • To check your requirement go to docker documentation site [ Link ] and see whether it matches with your machine.

    to check your windows system info press win + r and search for winver you will see your windows version and OS build number.

Step 2: Turn on the WSL 2 feature on Windows

  • if wsl-2 is not installed, install by command wsl --install .
  • Hyper-V and Containers Windows features must be enabled.

enable-hyper-V

  • Hardware virtualization must be enabled in the BIOS. To avoid any issues or error enable Virtual Machine Platform and Windows Subsystem for Linux

wsl-2-enabled

  • Check if the virtualization is enable of disabled for windows task manager.

virtualization-enabled

Step 3: Download Docker Desktop

  • Go to docker official web site [ Link ]. Click on “Docker Desktop for windows”
  • Install downloaded Docker exe file and run it.

Step 4: Verify the Installation

Run Docker Commands:

  • Type docker --version to verify that Docker is installed and running.
  • Run docker run hello-world to check if Docker can pull and run containers.

If everything is set up correctly, you should see a message saying "Hello from Docker!" indicating that your Docker installation is successful.

Conclusion

You've now installed Docker on your Windows machine and verified that it's working correctly. With Docker, you can start exploring containerization, creating your own containers, and simplifying your development workflow. Happy Dockering!

Feel free to leave a comment below if you have any questions or run into any issues during the installation process.

Top comments (0)