Please refer to here : https://learn.microsoft.com/en-us/windows/wsl/setup/environment
Korean : https://learn.microsoft.com/ko-kr/windows/wsl/setup/environment
Intel Virtualization Technology
or SVM Mode (AMD)
into Enabled in the BIOSwsl --install --no-distribution
wsl --set-default-version 2
Open cmd
Download the Ubuntu Image or use Docker Desktop GUI
#Pure Ubuntu
docker pull {ubuntu:version}
#For ROS2
docker pull osrf/ros:<ros_version>-desktop-full
Install Windows terminal in Microsoft Store
Create and run a container from the image
docker run --gpus all -it --name {container_name} -e DISPLAY=host.docker.internal:0.0 {image} bash
Check that GPU is linked in the container
apt update
apt install -y pciutils
lspci | grep -i nvidia
nvidia-smi
DO NOT INTALL OTHER NVIDIA DRIVERS!
You can start created container by this:
docker start -ai {container_name}
You can exit the terminal by this: