for-win icon indicating copy to clipboard operation
for-win copied to clipboard

WSL integration with distro Ubuntu unexpectedly stopped with exit code 1.

Open mwoodpatrick opened this issue 5 years ago • 48 comments

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

mwoodpatrick avatar Dec 31 '20 02:12 mwoodpatrick

I can't get Docker going at all any more after this failure.

rfay avatar Jan 05 '21 12:01 rfay

I am seeing the same problem with Docker desktop 3.0.4 and the latest Ubuntu code

mwoodpatrick avatar Jan 07 '21 19:01 mwoodpatrick

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!

voipAsteriskGuy avatar Jan 08 '21 17:01 voipAsteriskGuy

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.

Grimmstar avatar Jan 25 '21 04:01 Grimmstar

Same problem here.

ghost avatar Feb 04 '21 15:02 ghost

+1, same issue suddenly occured. Maybe some networking thing?

strarsis avatar Feb 07 '21 22:02 strarsis

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 avatar Feb 18 '21 10:02 ljr95

@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 avatar Feb 19 '21 16:02 binaryfiddle

@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?

ljr95 avatar Feb 19 '21 17:02 ljr95

Same here, I've re-installed docker windows, updated my Ubuntu, still doesn't work :(

Arvi89 avatar Feb 22 '21 00:02 Arvi89

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 avatar Feb 22 '21 01:02 Arvi89

@Arvi89 there is no such file in my etc folder

binaryfiddle avatar Feb 25 '21 17:02 binaryfiddle

I've got the same problem. My solution is:

  1. close Docker Desktop
  2. restart Ubuntu through services.msc or this command (you can put in bat): net stop LxssManager && net start LxssManager
  3. 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.

todpale avatar Feb 27 '21 13:02 todpale

I've got the same problem. My solution is:

  1. close Docker Desktop
  2. restart Ubuntu through services.msc or this command (you can put in bat): net stop LxssManager && net start LxssManager
  3. 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!

gperezivo avatar Mar 03 '21 17:03 gperezivo

This fixed it for me. https://github.com/docker/for-win/issues/7039#issue-630069905

NewNeonNeo avatar Mar 09 '21 22:03 NewNeonNeo

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....

Noext avatar Mar 12 '21 07:03 Noext

I've got the same problem. My solution is:

  1. close Docker Desktop
  2. restart Ubuntu through services.msc or this command (you can put in bat): net stop LxssManager && net start LxssManager
  3. 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!

jhonnymakis avatar Apr 23 '21 17:04 jhonnymakis

@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.

mikelor avatar Apr 26 '21 20:04 mikelor

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.

mhawila avatar May 29 '21 07:05 mhawila

I've got the same problem. My solution is:

  1. close Docker Desktop
  2. restart Ubuntu through services.msc or this command (you can put in bat): net stop LxssManager && net start LxssManager
  3. 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

rudiantotiofan avatar Jun 04 '21 05:06 rudiantotiofan