Docker becomes unresponsive
- [x] I have tried with the latest version of Docker Desktop
- [x] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
- Diagnostics ID: I could not get that. I assume for the same reason as the docker process is not responding. I also ran
C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe checkwhich never finished beyond:
...
[PASS] DD0015: are the binary symlinks installed?
[FAIL] DD0031: does the Docker API work? Get "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/v1.24/containers/json?limit=0": context deadline exceeded
[PASS] DD0013: is the $PATH ok?
Actual behavior
After starting a container and while running some jobs in the container, docker process becomes unresponsive. In that situation, running any docker command, like docker ps or even just docker results in no response, the process goes into a coma! Similarly, running Diagnostics in the Docker Desktop window didn't produce any result.
See the output of C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe check below. It also never finished.
In another instance, the same problem occurred when creating a docker image!
[+] Building 1.0s (4/9)
=> [internal] load build definition from Dockerfile-ABCD 0.4s
=> => transferring dockerfile: 1.12kB 0.3s
=> [internal] load .dockerignore 0.3s
=> => transferring context: 35B 0.3s
=> [internal] load metadata for docker.io/library/ubuntu:22.04 0.0s
=> [install-image 1/4] FROM docker.io/library/ubuntu:22.04 0.0s
=> [internal] load build context 0.5s
=> => transferring context: 6.19MB
After the last line, there was no other activity and no other docker command worked.
At this point, I tried to restart Docker. I got:
And clicking on restart, resulted in the same error message.
The only solutions I have found to restart Docker successfully are restarting the computer or running wsl --shutdown then quitting Docker and starting Docker again.
Expected behavior
Docker commands and APIs should be responsive! If there is any problem docker should let the user know!
Information
It's happened 4 times in the past hour. I even upgraded to 4.16.3 (I was behind one or two patches). I had seen a similar issue with the same workload but in the other case, I would get an error.
Everything was working (except this issue which I hadn't seen in a couple of weeks) and I had not updated docker recently.
- Windows Version: 10 Pro 22H2
- Docker Desktop Version: 4.16.3
- WSL2 or Hyper-V backend? WSL2
- Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No, on a laptop.
Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
It never finished:
[2023-02-02T03:41:55.311562600Z][com.docker.diagnose.exe][I] set path configuration to OnHost
Starting diagnostics
[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0002: does the bootloader have virtualization enabled?
[SKIP] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0022: is the Virtual Machine Platform Windows Feature enabled?
[PASS] DD0021: is the WSL 2 Windows Feature enabled?
[PASS] DD0024: is WSL installed?
[PASS] DD0025: are WSL distros installed?
[PASS] DD0026: is the WSL LxssManager service running?
[PASS] DD0029: is the WSL 2 Linux filesystem corrupt?
[PASS] DD0035: is the VM time synchronized?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[FAIL] DD0011: are the LinuxKit services running? failed to ping VM diagnosticsd with error: Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2023-02-02T03:42:04.693685600Z][com.docker.diagnose.exe][I] ipc.NewClient: 6b6138ac-diagnose -> \\.\pipe\dockerDiagnosticd diagnosticsd
[common/pkg/diagkit/gather/diagnose.glob..func14()
[ common/pkg/diagkit/gather/diagnose/linuxkit.go:18 +0x8b
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x101b440)
[ common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
[common/pkg/diagkit/gather/diagnose.Run.func1(0x101b440)
[ common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x4?, 0x101b440)
[ common/pkg/diagkit/gather/diagnose/run.go:142 +0x77
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x3, 0x101b440, 0xc000321728)
[ common/pkg/diagkit/gather/diagnose/run.go:151 +0x87
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x101b4c0, 0xc000321728)
[ common/pkg/diagkit/gather/diagnose/run.go:148 +0x52
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x101b540, 0xc000321728)
[ common/pkg/diagkit/gather/diagnose/run.go:148 +0x52
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x101bcc0, 0xc000321728)
[ common/pkg/diagkit/gather/diagnose/run.go:148 +0x52
[common/pkg/diagkit/gather/diagnose.walkOnce(0x9ae8a0?, 0xc00035f890)
[ common/pkg/diagkit/gather/diagnose/run.go:137 +0xcc
[common/pkg/diagkit/gather/diagnose.Run(0x101bcc0, 0xd913495f00000010?, {0xc00035fb20, 0x1, 0x1})
[ common/pkg/diagkit/gather/diagnose/run.go:16 +0x1d4
[main.checkCmd({0xc00007c3d0?, 0xc00007c3d0?, 0x4?}, {0x0, 0x0})
[ common/cmd/com.docker.diagnose/main.go:138 +0x105
[main.main()
[ common/cmd/com.docker.diagnose/main.go:102 +0x27f
[2023-02-02T03:42:04.693685600Z][com.docker.diagnose.exe][I] (abc713ee) 6b6138ac-diagnose C->S diagnosticsd GET /ping
[2023-02-02T03:42:05.696870900Z][com.docker.diagnose.exe][W] (abc713ee) 6b6138ac-diagnose C<-S NoResponse GET /ping (1.0031853s): Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[FAIL] DD0004: is the Docker engine running? Get "http://ipc/docker": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2023-02-02T03:42:05.701970700Z][com.docker.diagnose.exe][I] ipc.NewClient: 77b59569-com.docker.diagnose -> \\.\pipe\dockerLifecycleServer VMDockerdAPI
[linuxkit/pkg/desktop-host-tools/pkg/client.NewClientForPath(...)
[ linuxkit/pkg/desktop-host-tools/pkg/client/client.go:63
[linuxkit/pkg/desktop-host-tools/pkg/client.NewClient({0xa73bdc, 0x13})
[ linuxkit/pkg/desktop-host-tools/pkg/client/client.go:57 +0x99
[common/pkg/diagkit/gather/diagnose.isDockerEngineRunning()
[ common/pkg/diagkit/gather/diagnose/dockerd.go:21 +0x29
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x101b4c0)
[ common/pkg/diagkit/gather/diagnose/test.go:46 +0x43
[common/pkg/diagkit/gather/diagnose.Run.func1(0x101b4c0)
[ common/pkg/diagkit/gather/diagnose/run.go:17 +0x5a
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x3?, 0x101b4c0)
[ common/pkg/diagkit/gather/diagnose/run.go:142 +0x77
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x2, 0x101b4c0, 0xc000321728)
[ common/pkg/diagkit/gather/diagnose/run.go:151 +0x87
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x101b540, 0xc000321728)
[ common/pkg/diagkit/gather/diagnose/run.go:148 +0x52
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x101bcc0, 0xc000321728)
[ common/pkg/diagkit/gather/diagnose/run.go:148 +0x52
[common/pkg/diagkit/gather/diagnose.walkOnce(0x9ae8a0?, 0xc00035f890)
[ common/pkg/diagkit/gather/diagnose/run.go:137 +0xcc
[common/pkg/diagkit/gather/diagnose.Run(0x101bcc0, 0xd913495f00000010?, {0xc00035fb20, 0x1, 0x1})
[ common/pkg/diagkit/gather/diagnose/run.go:16 +0x1d4
[main.checkCmd({0xc00007c3d0?, 0xc00007c3d0?, 0x4?}, {0x0, 0x0})
[ common/cmd/com.docker.diagnose/main.go:138 +0x105
[main.main()
[ common/cmd/com.docker.diagnose/main.go:102 +0x27f
[2023-02-02T03:42:05.702521800Z][com.docker.diagnose.exe][I] (a07e58d1) 77b59569-com.docker.diagnose C->S VMDockerdAPI GET /docker
[2023-02-02T03:42:15.707578200Z][com.docker.diagnose.exe][W] (a07e58d1) 77b59569-com.docker.diagnose C<-S NoResponse GET /docker (10.0050564s): Get "http://ipc/docker": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2023-02-02T03:42:15.708120200Z][com.docker.diagnose.exe][I] (a07e58d1-1) 77b59569-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-02-02T03:42:16.724354300Z][com.docker.diagnose.exe][W] (a07e58d1-1) 77b59569-com.docker.diagnose C<-S NoResponse GET /ping (1.0162341s): Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2023-02-02T03:42:17.725489000Z][com.docker.diagnose.exe][I] (a07e58d1-2) 77b59569-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-02-02T03:42:18.742568400Z][com.docker.diagnose.exe][W] (a07e58d1-2) 77b59569-com.docker.diagnose C<-S NoResponse GET /ping (1.0170794s): Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2023-02-02T03:42:19.744393800Z][com.docker.diagnose.exe][I] (a07e58d1-3) 77b59569-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-02-02T03:42:20.745421200Z][com.docker.diagnose.exe][W] (a07e58d1-3) 77b59569-com.docker.diagnose C<-S NoResponse GET /ping (1.0010274s): Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[2023-02-02T03:42:21.746415200Z][com.docker.diagnose.exe][I] (a07e58d1-4) 77b59569-com.docker.diagnose C->S VMDockerdAPI GET /ping
[2023-02-02T03:42:22.747341000Z][com.docker.diagnose.exe][W] (a07e58d1-4) 77b59569-com.docker.diagnose C<-S NoResponse GET /ping (1.0009809s): Get "http://ipc/ping": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[PASS] DD0015: are the binary symlinks installed?
[FAIL] DD0031: does the Docker API work? Get "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/v1.24/containers/json?limit=0": context deadline exceeded
[PASS] DD0013: is the $PATH ok?
Steps to reproduce the behavior
- Start docker
- Start a few container and run a job! I cannot share the containers.
I just got the same issue on a different machine with fresh Windows 11 Pro 22H2 and Docker desktop 4.16.3 I am going to revert to 3.6.0, the last version I know that does not have neither this issue nor i/o timeout error!
Having the same problem, Docker gets into a really bad state that nothing works, I have to reboot the full machine.
I wonder if this has to do with the updates pushed to WSL via the Windows Store now.
got the same on ubuntu desktop
Same issue here with only a reboot fixing the responsiveness problem. (Windows 10 Pro, running Docker Desktop on Hyper-V)
I have the same issue here. I thought it was my Windows setup so did a fresh Windows 11 install and I have the same problem. Eventually, let's say after a day or 2, some containers start to be unresponsive and I can't stop them. My only solution is to restart the computer, restarting docker desktop doesn't work.
If I run C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe check it finishes for me. I have no fatal errors but I do have some skip. I put below only the [SKIP]:
[SKIP] DD0002: does the bootloader have virtualization enabled?
[SKIP] DD0018: does the host support virtualization?
[SKIP] DD0022: is the Virtual Machine Platform Windows Feature enabled?
[SKIP] DD0021: is the WSL 2 Windows Feature enabled?
[SKIP] DD0009: is the vpnkit API responding?
[SKIP] DD0006: is the Docker Desktop Service responding?
[SKIP] DD0030: is the image access management authorized?
I am wondering: is there anything I need to configure differently to be able to have a stable docker desktop? Back a couple of years ago maybe in 2021 or early 2022. I didn't have any issues. I could leave my computer up and running with my 20-ish containers and it was very stable for several weeks.
I have looked at the logs as well and I couldn't see anything.
Running docker desktop for Windows with WSL backend using the default distro, the last version as of today but problem has been ongoing for more than 1 year now.
+1
+1, for me it happens when my pc goes to sleep and I have a running container
+1 on Ubuntu