for-win
for-win copied to clipboard
docker engine stopped
Description
For the past week, my Docker has been down. I've tried purging all the data, reinstalling Docker, and reinstalling WSL, but nothing works. I'm on Windows 11, with the latest WSL and the latest version of Docker. When I switch to Windows containers, it works. However, in Linux containers, the engine just doesn't run or gets stuck on "engine starting" after a data purge. I've pretty much run out of ideas and tried everything I knew.
When I disable wsl2 and run through hyper v the docker engine starts right away
Reproduce
Install docker Launch docker Docker engine doesn't start
Expected behavior
No response
docker version
Client:
Version: 27.0.3
API version: 1.46
Go version: go1.21.11
Git commit: 7d4bcd8
Built: Sat Jun 29 00:03:32 2024
OS/Arch: windows/amd64
Context: desktop-linux
command get stuck and doesn't print anything unless i cancel. So it doesn't output the information as it should
docker info
doesn't output info
Diagnostics ID
A9788111-82F3-4995-AB8E-7C8332706713/20240722073457
Additional Info
No response
downgrading from the pre-release to latest version of wsl fixed the problem for me
Try this = Delete the .docker file and then restart docker desktop . you can find the .docker file mostly at C:/Yourname/ .
Try this = Delete the .docker file and then restart docker desktop . you can find the .docker file mostly at C:/Yourname/ .
c:\Username does not exist, do you mean c:\Users\Username? Also, in that location there is only a .docker directory, not a file, is deleting that what fixed it for you?
Yes in c:\Users\Username you will find .docker directory . I deleted .docker directory and now i'm able to run my docker desktop.. it worked for me
this seems related to https://github.com/docker/for-win/issues/14207 🤔
Fixed in wsl-2.3.13 release!
Try this = Delete the .docker file and then restart docker desktop . you can find the .docker file mostly at C:/Yourname/ .
@Sachi9892 this worked for me. thank you
Thank you
On Sun, 6 Oct 2024, 14:38 Farzaneh Kazemi, @.***> wrote:
Try this = Delete the .docker file and then restart docker desktop . you can find the .docker file mostly at C:/Yourname/ .
this worked for me. thank you
— Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/14210#issuecomment-2395425404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJYQVCVKTUP4QLHM2IQY23DZ2EVN3AVCNFSM6AAAAABLHX6RCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQZDKNBQGQ . You are receiving this because you commented.Message ID: @.***>
Just installed Docker , but the Engine stops at every attempt to load.
C:\Windows\System32>docker version Client: Version: 27.4.0 API version: 1.47 Go version: go1.22.10 Git commit: bde2b89 Built: Sat Dec 7 10:40:21 2024 OS/Arch: windows/amd64 Context: desktop-linux
Yes in c:\Users\Username you will find .docker directory . I deleted .docker directory and now i'm able to run my docker desktop.. it worked for me
Great! this worked for me. thank you!!!!
- make sure virtualization active in bios
- enable virtualization in optional feature
- cmd -> ipconfig /flushdns cmd -> netsh winsock reset
- delete directory in C:\Users<username>\ .docker
- cmd -> wsl --list --verbose make sure you only see docker-desktop with state stopped and version 2
- cmd -> wsl --update cmd -> wsl --shutdown
- restart your pc and run docker desktop
that's it
Had this issue after updating to "Docker Desktop 4.39.0" with "Docker version 28.0.1, build 068a01e", and I had just updated wsl earlier. None of the proposed solutions here worked for me.
What ended up working was remembering that I had enabled WSL Integration for a distro in Docker Desktop settings, so I went ahead and ran sudo apt update && sudo apt upgrade in wsl and ensured running docker --version inside wsl reported the same version and build as running the command outside wsl.
The issue went away after that.
Not sure why yet, but I also had the same problem. It resolved itself when I just manually logged into the docker-desktop distro in WSL2, i.e.
wsl -d docker-desktop
After that, Docker Desktop unfroze, reported an error, then restarted fine. Prior to that it was just halted on a "Docker engine stopped" status with no end in sight. Also Docker Desktop 4.39.0 (184744) and same CLI version (Docker version 28.0.1, build 068a01e). Cannot upgrade yet as I don't have local admin rights on this particular machine.
Yes in c:\Users\Username you will find .docker directory . I deleted .docker directory and now i'm able to run my docker desktop.. it worked for me
It works for me too. Thank you!
Yes in c:\Users\Username you will find .docker directory . I deleted .docker directory and now i'm able to run my docker desktop.. it worked for me
This also works for me, although I don't know the reason. Thank you so much.
Yes in c:\Users\Username you will find .docker directory . I deleted .docker directory and now i'm able to run my docker desktop.. it worked for me
This also works for me, thanks!
Install the latest version of wsl worked for me. https://github.com/microsoft/WSL/releases/download/2.6.0/wsl.2.6.0.0.x64.msi