Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 497 Bytes

shutdown-a-wsl-instance.md

File metadata and controls

26 lines (17 loc) · 497 Bytes

Shutdown A WSL Instance

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.