Almost worked for me. I ended up removing various installations of ubuntu and sticking to only having the wsl installed. Now I finally got a stable dev environment
Iâm running: Docker-desktop with kubernetes and are using devcontainers in vs code.
My issue was both with kubernetes and mounts in devcontainerâs.
After upgrading from 4.23.0 to 4.28.0, I also experienced the timeouts and EOF-messages. After doing a Reset Kubernetes Cluster (and setting up all the things that my project depends on, such as secrets that were now missing, etc), everything was back up and running again. Thanks for this thread, it works perfectly! I just wish it wasnât necessary.
Many of us enabled WSL2 integration and install Ubuntu from MS Store after installing Docker Desktop (at least >= 4.7.1) and starting Kubernetes, and found Kubernetes failed to start and stuck, for me the cause was due to the âUbuntuâ in MS Store defaults to Distro 22.04.X which I believe is not working well with Docker Desktop and its Kubernetes engine.
The solution:
- run Windows Task Manager to end-task Docker Desktop
- uninstall âUbuntuâ which is version 22.04.X in Windows installed apps
- run âwsl -l -vâ to look at existing status
- run âwsl -t Ubuntu-22.04â to terminate Distro âUbuntu-22.04â
- run âwsl --unregister Ubuntu-22.04â to unregister it
- from MS Store download and install Ubuntu-20.04
- run wsl and initialize Ubuntu-20.04
- run âwsl -s Ubuntu-20.04â to set default to it
- in Docker Desktop Settings/Resources/WSL integration enable it and set it to default WSL distro âUbuntu-20.04â
Kubernetes will start fine and fast.