DEV Community

Cover image for Install Docker on Window
Luke
Luke

Posted on

Install Docker on Window

1) Install WSL 2 (if not install yet)

  • Window 11: already have WSL 2

  • Window 10 and below: Open PowerShell with Administrator role and run

wsl --install
Enter fullscreen mode Exit fullscreen mode

2) Install Docker Desktop

  • Access this URL
  • Choose “Download for Windows (WSL 2)”
  • Download and install everything you need
  • After installed, reboot your machine to get it done

3) Check docker version

Open Terminal and run

docker --version
Enter fullscreen mode Exit fullscreen mode

It will show something like Docker version x.x.x, build ....

4) Run and test docker

Open Terminal and run

docker run hello-world
Enter fullscreen mode Exit fullscreen mode

If everything work fine, you'll see

Hello from Docker!
This message shows that your installation appears to be working correctly

Now you can start your journey with Docker!
Happy Coding.

Top comments (0)