WSL integration with distro Ubuntu unexpectedly stopped with exit code 1.
I am running latest docker desktop on windows 10 pro (Build 19042) with WSL2 and Ubuntu 20.04.1 distribution and it was working fine but today I started getting "WSL integration with distro Ubuntu unexpectedly stopped with exit code 1. Do you want to restart it?" I tried restarting docker desktop, rebooting my PC and resetting docker desktop but to no avail. Anyone know what error 1 is or any suggestions about the best way to debug this.?
Diagnostics uploaded with id:
BB627E01-A658-447E-8046-C1F13A8C3150/20201231014758
I can't get Docker going at all any more after this failure.
I am seeing the same problem with Docker desktop 3.0.4 and the latest Ubuntu code
Hi i had the same issue when updated docker desktop with wsl2 backed has a work around i did the following steps:
1.- In docker desktop settings i enabled again the "enabled integration with other distros" 2.- Apply and restart the changes then stop Docker desktop. 3.- Enter to Settings -> Apps and search for ubuntu 4.- Click on Ubuntu and advanced settings 5.- Select repair 6.- Restart the computer 7.- After computer starts enter to the ubuntu wsl via console or terminal 8.- start docker desktop 9.- try docker ps or docker-compose to check if the error was resolved. I see this issue happening on a computer with latest Ubuntu but not happening on Ubuntu 18.04
Hope this help!
I'm having the same problem with WSL2 and Ubuntu, Ubuntu-16, Ubuntu-18, and Ubuntu-20. I've uninstalled, re-imstalled, restarted Docker, reset Docker, repaired Docker and Ubuntu(s), purged all Docker tmp, cache, and config files, and nothing has worked.
Same problem here.
+1, same issue suddenly occured. Maybe some networking thing?
Hello I had the same problem, to solve it I did the WSL Ubuntu updates (sudo apt update && sudo apt upgrade -y) and restarted Windows. Hope this works for you.
@ljr95 Tried doing
Hello I had the same problem, to solve it I did the WSL Ubuntu updates (sudo apt update && sudo apt upgrade -y) and restarted Windows. Hope this works for you.
The Above solution did not work, still facing the same docker issue
@binaryfiddle
Sorry if it doesn't work. I had also purged the Docker cache, in the Docker application -> Troubleshoot -> Clean / Purge data then restart the Windows. You should try.
Have you checked to see if you have any Windows updates to do?
Same here, I've re-installed docker windows, updated my Ubuntu, still doesn't work :(
Oh, I've just found a solution for my problem: I had a specific config in /etc/wsl.conf nameserver 1.1.1.1 I emptied the file, restarted wsl (wsl --shutdown from powershell) and now it works.
@Arvi89 there is no such file in my etc folder
I've got the same problem. My solution is:
- close Docker Desktop
- restart Ubuntu through services.msc or this command (you can put in bat):
net stop LxssManager && net start LxssManager - start Docker again
You also may check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration). I don't know why but it switches off sometimes.
I've got the same problem. My solution is:
- close Docker Desktop
- restart Ubuntu through services.msc or this command (you can put in bat):
net stop LxssManager && net start LxssManager- start Docker again
You also may check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration). I don't know why but it switches off sometimes.
Works for me!
This fixed it for me. https://github.com/docker/for-win/issues/7039#issue-630069905
Oh, I've just found a solution for my problem: I had a specific config in /etc/wsl.conf nameserver 1.1.1.1 I emptied the file, restarted wsl (wsl --shutdown from powershell) and now it works.
very thanks, it seems that changing the nameserver in wsl broke the docker integration....
I've got the same problem. My solution is:
- close Docker Desktop
- restart Ubuntu through services.msc or this command (you can put in bat):
net stop LxssManager && net start LxssManager- start Docker again
You also may check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration). I don't know why but it switches off sometimes.
Works for me!
Works for me! Thanks!
@gperezivo's fix of
Check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration).
Worked for me. Restarted Docker and everything worked fine. No need for the other commands. Running Ubuntu.
You also may check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration). I don't know why but it switches off sometimes.
Yep this did it for me.
I've got the same problem. My solution is:
- close Docker Desktop
- restart Ubuntu through services.msc or this command (you can put in bat):
net stop LxssManager && net start LxssManager- start Docker again
You also may check if your distro is enabled in Docker settings (General tab and Resources tab -> WSL Integration). I don't know why but it switches off sometimes.
Thanks ! this work for me