How to use Dev Containers in VSCode without Docker Desktop? #99
-
Hi all, I have the following configuration: To start the Docker Engine, I followed the instructions from this good post https://medium.com/@ferarias/docker-in-windows-11-using-wsl2-8e30faddc32c With these settings, I manage to successfully run docker containers from my host, but VSCode Dev Containers does not work 😔. Here's where the whole process breaks down: If I install Docker Desktop, everything works. But I can't install it because of policies. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Thank you for the question and sharing the details. |
Beta Was this translation helpful? Give feedback.
-
Try enabling Dev Containers: Execute in WSL in the VS Code user settings: |
Beta Was this translation helpful? Give feedback.
-
Today, I discovered that it doesn't really work as intended :( I forgot that I didn't update Anyway, at least I can use Dev Containers. |
Beta Was this translation helpful? Give feedback.
This should also work with Windows folders. If you want to use a WSL folder (e.g., for performance) without connecting to WSL first, you could open
\\wsl.localhost\<wsl distro>\<wsl path>
(e.g.,\\wsl.localhost\Ubuntu\home\chrmarti\development\myproject
) and reopen that in a dev container.