Docker Desktop Install on Windows
- 1. Enabled Windows Featured
- 2. Setting Up WSL2
- 3. Installing and Setting up Docker-Desktop
Enabled Windows Featured
Requirements Below
-
Check to See if Virtualization is enabled in your bios
-
Open Task Manager and See if Virtualization is running
-
If it is on continue to step 3. If it is not you need to enable it in bios.
2.1 Heres a good Tutorial for all Motherboard Manufacturers.
- Turn Windows Features On
-
Turn on
4.1 Hyper-V 4.2 Virtual Machine Platform 4.3 Windows Hypervisor Platform 4.4 Windows Subsystem Linux
- Reboot Your PC
Setting Up WSL2
- Once Rebooted You can install your VM.
- Go to MS Store and Search Ubuntu and select an install you want I WOULD RECOMMEND THE LATEST UBUNTU CURRENTLY ITS 22.04
-
Once installed open the Ubuntu 22.04 from the MS Store
-
Setting it up make a name (IT HAS TO BE ALL LOWER CASE)
- Set a Password
- Now Check What WSL Version in powershell your using
wsl --list --verbose
YOU NEED TO BE WSL2
- Install WSL2 Update by running the Installer
- Now Set the Default Kernel to WSL2 in powershell
wsl --set-default-version 2
- Once that is done if it still has not updated to 2 run this command
wsl --update
TroubleShooting Installing WSL2
- If your on Windows 10 and cannot enable or install WSL2 Use this installer
- If running the
wsl --set-default-version 2
then try to apply it directly to your linux. So if my install running the
wsl --list --verbose
it says the name add that in the code ie. Ubunut-22.04
wsl --set-version Ubuntu-22.04 2
Installing and Setting up Docker-Desktop
- Download Docker-Desktop
- Click through the Installer
- Once installed Run the Docker-Desktop (NOT IT MAY TAKE SOME TIME TO FIRST START DEPENDING ON YOUR HARDWARE)
Extra Docker Setups Configs
Limiting Dockers RAM Usage
- Navigate to
C:\Users\DESKTOP-USERNAME
- Edit .wslconfig in any text editor
add these line to it. This will limit it to 4GB you can set any number from 2GB-64GB
[wsl2]
memory=4GB
- Restart Docker and it should update to the correct limit.
Docker-Desktop Troubleshooting
Docker-Desktop Not Starting
- If docker-desktop doesnt start after 10 Minutes ie. Showing the green background with the whale. Do these steps to fix it.
You need to Fully remove Docker-Desktop RESTART COMPUTER with this important note.
- Then re-install Docker Desktop
Docker-Desktop Not Saving Containers
If you are having issues with when you reboot and it not saving your containers or completely corrupting All you need to do is
- You need to Fully remove Docker-Desktop RESTART COMPUTER
- Then re-install Docker Desktop
This should fix the issue.