
Setup Docker on Window
How to run Docker Destop on Window with WSL 2
I. Introduction
On Windows 10 and 11, you can access Docker via Docker Desktop and the Windows Subsystem for Linux (WSL). Docker Desktop is available on Windows, macOS, and Linux, and it’s known to accelerate productivity by simplifying the process of configuring complex application environments.
The Windows Subsystem for Linux lets Windows users run Linux distributions on Windows without having to dual-boot or configure a dedicated virtual machine. Windows users can directly access the Linux command-line tools, applications, utilities without additional installation overhead, developing cross-platform applications without worrying about dedicated hardware or leaving the Windows ecosystem.
II. Prequisites
- Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11
- Hardware Virtualization Technology (VT-x) enabled in BIOS
- Microsoft Hyper-V and Containers features enabled
III. Steps
1. Enable WSL 2
- Open PowerShell as an administrator and run the following command to enable the Windows Subsystem for Linux feature:
- Restart your computer to apply the changes.
- See more at https://learn.microsoft.com/en-us/windows/wsl/install
2. Download Docker Desktop
- Go to the Docker Desktop download page and click on the Download for Windows button.
- Run the installer and follow the installation instructions.
- Once the installation is complete, you will be prompted to log in to your Docker account. If you don't have an account, you can create one for free.
- Launch Docker Desktop from the Start menu, and navigate to Settings > General. Ensure that the Use WSL 2 based engine option is selected.
- Open Docker Desktop and go to Settings.
- Click on the Resources tab and then WSL Integration.
- Enable the Enable integration with my default WSL distro option.
- Click on Apply & Restart.
3. Enable Docker engine on daemon
- Press
Win + R
to open the Run dialog box. - Type
services.msc
and press Enter. - Scroll down to find and right-click to the Docker Desktop Service, then choose Start option to start the service.
🍃 Related posts
Want to update?
Subscribe to my blog to receive the latest updates from us.