Category: Windows
WSL instances can be listed from the Windows command prompt as follows:
wsl -l
Output:
Ubuntu-20.04 (Default)
docker-desktop
You can shutdown all running WSL instances matching a distro name from the host with the following command:
wsl -t Ubuntu-20.04
Alternatively, from the WSL console type exit
or logout
.
Note: When a WSL instance is started, it will be allocated a new IP address.