Skip to content

Instantly share code, notes, and snippets.

@initcron
Created June 17, 2022 03:31
Show Gist options
  • Save initcron/ba28e9be8e846aa48f6ee5c699ada765 to your computer and use it in GitHub Desktop.
Save initcron/ba28e9be8e846aa48f6ee5c699ada765 to your computer and use it in GitHub Desktop.
Connecting to Docker Desktop Host with WSL2
C:\Users\xyz> wsl -l

[sample output] Windows Subsystem for Linux Distributions: docker-desktop-data (Default) docker-desktop Ubuntu

Now to connect to docker-desktop use

C:\Users\xyz>wsl -d docker-desktop

And then explore, e.g. to find the processes

ps -ef 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment