# Enable WSL Ubuntu 24.04 and install docker
## Step By Step Process
This process requires **Enable of CPU Virtualization** in **BIOS/UEFI**.
NOTE: Please Enable CPU Virtulation then follow the following steps.
#### Step 1: Enable WSL and Virtual Machine Platform
```
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
```
#### Step 2: Install WSL Linux kernel on Windows
```
Invoke-WebRequest -Uri "https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi" -OutFile "C:\Windows\Temp\wsl_update_x64.msi"
Start-Process msiexec -ArgumentList "/i `"C:\Windows\Temp\wsl_update_x64.msi`"","/qn";
wsl --set-default-version 2
```
#### Step3: Import Ubuntu 24.04 using WSL.
```
mkdir C:\WSL\Ubuntu24
Invoke-WebRequest -Uri "https://cloud-images.ubuntu.com/wsl/releases/24.04/current/ubuntu-noble-wsl-amd64-wsl.rootfs.tar.gz" -OutFile "C:\Windows\Temp\Ubuntu24-rootfs.tar.gz"
wsl --import Ubuntu-24.04 C:\WSL\Ubuntu24 C:\Windows\Temp\Ubuntu24-rootfs.tar.gz --version 2
wsl -d Ubuntu-24.04
```
Step 3 has successfully installed ubuntu 24.04 using WSL2.
Now we are inside ubuntu terminal. Let's continue on ubuntu terminal session.
#### Step 4: Update the system
Before installing Docker, it is a good practice to ensure that all system packages are up to date.
```
apt update && apt upgrade -y
```
#### Step 5: Install dependencies
Install the required dependencies:
```
apt install -y apt-transport-https ca-certificates curl software-properties-common
```
#### Step 6: Install Docker Engine
Update repositories and install Docker Engine:
```
apt install -y podman-docker
```
#### Step 7: Verify Docker Installation
```
docker version
docker-compose version
docker ps
```
### Please contact if you face any issue. Thank you