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.
code .
Docker returned an error. Make sure the Docker daemon is running and select an option how to proceed.
Start: Run: docker version --format {{.Server.APIVersion}} [883 ms] findLocalWindowsExecutable: Exectuable 'docker' not found on PATH 'C:\Windows\system32;(...)'. [885 ms] Exectuable 'docker' not found on PATH 'C:\Windows\system32;(...)'. [890 ms] Docker returned an error code ENOENT, message: Exectuable 'docker' not found on PATH 'C:\Windows\system32;(...)'.
Thanks, Johan
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)