How can I add docker engine on WSL2 to the services?

Answered

I'm working on Windows 11.

I want to add WSL2 docker engine to the following services list.

is it available?

1
7 comments

Please select add Docker Connection service type in the toolbar to add a connection to a WSL Docker. Make sure the docker is up and running on the WSL host and you are able to connect to it from Windows machine via tcp connection.

0

Andrey Dernov

Excuse me. What value should I input? 

Docker is running

 

0

If you have Docker running on Windows, select feel free to select Docker for Windows. See also the related video tutorial or documentation tutorial and description of the settings page.

0

I think he wants to know how to config when docker engine is running on ubuntu wsl2.

0

In IDEA 2022.3.x version, you could configure the connections to Docker that run in WSL.

See here for details: https://www.jetbrains.com/idea/whatsnew/#page__content-docker

0

Lejia Chen This link does not help at all with configuring wsl docker connection

0

Zonko, could you please specify how exactly your setup looks? Are IDE and Docker both installed inside WSL, or one of them is "outside" on Windows? 

0

Please sign in to leave a comment.