vscode-remotevscode-devcontainer

VSCode Create Dev Container - docker not found (worked before)


I seem to be unable to create any new dev containers on WSL2 Ubuntu (worked fine before) and I don't know how to debug this.

Environment

Scenario

Already tried

Question

Thanks, Johan


Solution

  • Maybe you fixed your problem in the meantime, but i was facing exactly the same problem. After some searching, i finally found the solution in the following blog article: https://www.tecracer.com/blog/2023/01/devcontainers-on-windows-without-docker-for-desktop.html

    To solve it, just enable the following setting in VS Code Settings:

    Settings -> Dev Containers -> Execute in WSL (Applies to all profiles)