Repository navigation
Description
Bug report
Title: Startup crash: cannot remove stale unix socket files (dockerInference, secrets-engine engine.sock) after unclean shutdown — "The file cannot be accessed by the system"
Description
After an unclean shutdown of Docker Desktop (Windows standby while the engine was starting, or force-killing the backend), Docker Desktop permanently crashes at every subsequent startup with:
starting services: initializing Inference manager: listening on
unix://C:\Users\<user>\AppData\Local\Docker\run\dockerInference:
remove C:\Users\<user>\AppData\Local\Docker\run\dockerInference:
The file cannot be accessed by the system.
After working around the first error (see below), it crashes again on the next component:
starting services: initializing Secrets Engine: listening on
unix://C:\Users\<user>\AppData\Local\docker-secrets-engine\engine.sock:
remove C:\Users\<user>\AppData\Local\docker-secrets-engine\engine.sock:
The file cannot be accessed by the system. (listener: The filename,
directory name, or volume label syntax is incorrect.)
The stale AF_UNIX socket files left behind by the killed process cannot be deleted by any
means (del, PowerShell Remove-Item, .NET File.Delete all fail with "The file cannot be
accessed by the system") — not even after a full Windows reboot, which suggests the
reparse points are left in a corrupted state.
Monitor log shows: com.docker.backend.exe services: exit status 150.
Reproduced on
- Docker Desktop 4.66.1 and 4.83.0 (persists across upgrade)
- Windows 11 Pro 10.0.26200, WSL2 backend
- Trigger: system standby or process kill while Docker Desktop is starting/running
Expected behavior
If a stale socket file cannot be removed, Docker Desktop should degrade gracefully
(rename the parent directory, bind to an alternative path, or start without the optional
AI/inference component) instead of hard-crashing the whole application. Note that per
#342, disabling inference via admin-settings.json does not skip Inference manager
initialization, so there is currently no user-side opt-out that avoids the crash.
Workaround found
With Docker Desktop stopped, rename the directories containing the stuck sockets and let
Docker recreate them (deleting the files directly is impossible):
Rename-Item "$env:LOCALAPPDATA\Docker\run" "$env:LOCALAPPDATA\Docker\run.stale"
New-Item -ItemType Directory "$env:LOCALAPPDATA\Docker\run"
Rename-Item "$env:LOCALAPPDATA\docker-secrets-engine" "$env:LOCALAPPDATA\docker-secrets-engine.stale"Then start Docker Desktop normally. The renamed directories remain undeletable until the
broken reparse points are cleaned up by other means.
Platform
Windows
Version information
Docker Desktop: 4.83.0 (build 234302) — issue first observed on 4.66.1, persists after upgrade to 4.83.0
Docker Engine: 29.6.2 (client and server)
OS: Windows 11 Pro 25H2 (build 10.0.26200)
Backend: WSL2 — WSL 2.6.3.0, kernel 6.6.87.2-1, WSLg 1.0.71
Architecture: x64Diagnostics ID
22D92D9B-7E5F-43D0-B319-ECF3F1B2EC0A/20260728183747
Activity
benitoalba commentedon Sep 1, 2026
I can still reproduce this on Docker Desktop 4.89.0 (build 238018), whose release notes say this startup failure was fixed.
Environment:
In 4.89.0, Docker now attempts to rename the stuck socket to
.stale, but the rename itself fails with Windows error 1920:I reproduced this after a graceful
docker desktop stop --timeout 30followed by a normal start, not only after an unclean shutdown.Deleting or renaming the individual reparse point still fails. Renaming the entire parent directories and allowing Docker to recreate them remains the reliable workaround:
Docker then starts successfully without resetting images, containers, or volumes. This suggests the 4.89.0 per-file rename fallback also needs a parent-directory fallback when Windows returns
ERROR_CANT_ACCESS_FILE(1920).PZY-pzy451 commentedon Sep 5, 2026
Additional reproduction on Docker Desktop 4.89.0 (build 238018), affecting
dockerInferenceon Windows 11 Home, build 10.0.26200, x64, WSL2 backend.We upgraded from 4.85.0 using the official signed x64 installer, after backing up
the stopped VM disks and settings. Installer SHA256/Authenticode checks passed;
installation exited 0 and the registry/binary confirm 4.89.0.238018. The existing
per-user installation location was retained.
The upgraded backend still crashed at 2026-09-05 15:17:37 UTC. Its new
rename-aside cleanup fails in the same way as the preceding 4.89.0 report:
A
docker infoprobe explicitly targeting the localnpipe:////./pipe/dockerDesktopLinuxEnginetimed out after 20 seconds. Containertests were not run. Official force-stop subsequently exited 0 and a follow-up
inventory found no Desktop/backend processes.
Earlier, on 4.85.0, preserving/recreating only
Docker/runexposed a second failureat
docker-secrets-engine/engine.sock. No factory reset, VM/data deletion or WSLunregister was performed. We have not validated a successful workaround for both
endpoints on this host.
Please advise on a supported recovery that preserves existing VM data and handles
Windows rejecting the individual socket rename. This may help assess whether the
4.89.0 fix needs a directory-level fallback for the affected services.
Diagnostics ID:
21D7457C-5513-4290-9EE0-105D80B81515/20260905152024.The existing diagnostic bundle was uploaded with the official
com.docker.diagnose.exe uploadcommand, which exited 0. The raw archive is notattached publicly.
simeonsaaaondonyam100-hub commentedon Sep 6, 2026
Docker Desktop 4.89.0 still fails on Windows build 26200 when renaming orphaned sailor-ingest.sock
Additional evidence for #554; also related to #531. This report concerns the Ingest server and a failed rename in 4.89.0, whereas those reports describe earlier versions and other listeners. Please advise whether this variant should be tracked separately.
Summary
Docker Desktop 4.89.0 build 238018 fails during backend startup when it tries to rename an existing Windows AF_UNIX socket, sailor-ingest.sock, to sailor-ingest.sock.stale. The destination does not exist. Windows returns "The file cannot be accessed by the system." Independent read-only filesystem probes return error 1920 (ERROR_CANT_ACCESS_FILE). Startup terminates approximately two seconds after normal launch, and Docker Engine remains unavailable throughout four minutes of observation.
The 4.89.0 Windows release notes advertise a fix for startup failures caused by sockets left after ungraceful shutdown. That fix did not resolve this listener in the observed full-shutdown/startup sequence. Whether this is an incomplete fix, a regression, or a distinct Windows interaction requires Docker confirmation.
Environment
Observed sequence and reproduction
This describes the observed affected-machine sequence. It is not a claim that a fresh installation will reproduce the condition, or that the initial socket orphaning mechanism has been proven.
Recorded times (UTC+01:00):
The condition therefore survived two operator-confirmed full shutdowns and new Windows boot sessions. No additional Docker startup was attempted during the diagnostic or report-preparation tasks.
Expected behavior
Docker safely handles the orphaned runtime socket and starts its engine, or provides a supported, narrowly scoped recovery path that preserves containers, images, volumes, networks, and WSL data.
Actual error
Only the Windows username has been replaced in this log text:
The recorded stack traverses services.ListenUnix, services.ListenAndRun, and services.(*Services).startSailorRouter. The error dialog offers Quit and Reset to factory defaults. Neither repair action was used for this failure.
Filesystem and permissions evidence
Exact path with username sanitised:
Read-only probes:
No file was opened for writing. No handle was forcibly closed. Installed tooling could not establish a precise handle owner; failed enumeration is not evidence of zero holders.
Process, service, and security evidence
Diagnostics and investigation limits
No socket deletion, runtime-directory rename, reset, factory reset, reinstall, ACL change, or security change was attempted during this 4.89.0 failed cold-start investigation. Older stale-named entries already exist from earlier troubleshooting; this report does not claim that no historical recovery ever occurred. Existing Docker data must be preserved, and resource health cannot be freshly verified while the engine is unavailable.
Questions for Docker
References
The related issue reports are community observations in Docker's official tracker. Their recovery suggestions are not treated here as vendor-endorsed repairs.
bearberni commentedon Sep 7, 2026
Additional controlled reproduction on Docker Desktop 4.89.0 (238018), Windows 11 Pro 25H2 26200.9168, WSL2 backend, Engine 29.7.2. Docker AI and Kubernetes were disabled.
This adds a clean CLI stop/start case to the reports above, including a failure without an existing .stale destination.
Reproduction observed on September 6, 2026
docker desktop stop --timeout 45. It exited successfully.There was no force-kill, WSL termination command, Windows restart, or cleanup between the healthy run and this failed restart. Earlier recovery of a previous crash had required preserving the runtime directories under new names; this is not a fresh-install reproduction.
Sanitized error:
Evidence and limits
fsutil reparsepoint queryalso returned error 1920 for newly created sockets during a healthy Docker run. That probe alone is not evidence of socket corruption.The 4.89.0 release notes mention a fix for sockets left after ungraceful shutdown, but successful CLI shutdown is sufficient in this case.
Could maintainers confirm whether a follow-up fix is planned, identify a target version/date if available, and advise whether a supported patch or runtime-directory recovery procedure exists that preserves persistent Docker data?
Only this sanitized summary is being posted. Raw local logs and diagnostic archives have not been uploaded.
a15310998170-dotcom commentedon Sep 8, 2026
Additional reproduction: Desktop 4.90.0, including after a successful normal stop
I can reproduce a closely related startup failure on Windows. One important difference from the original report: the most recent failure followed a successful normal
docker desktop stop, not a forced termination or standby.Versions
com.docker.backend.exe: 4.90.0.238679.Observed sequence
Docker/runanddocker-secrets-enginedirectories by renaming their parent directories. No data disks or volumes were deleted.docker version,docker info, anddocker pssucceeded. Real PostgreSQL, Redis, object-storage and Celery queue checks passed; existing persisted test data remained readable.docker desktop stop --timeout 45. It returned exit code 0. The backend recordedmarlin stopped, andwsl --list --verbosereporteddocker-desktopasStopped.docker desktop start --detach.sailor-ingest.sockto.stale, before the WSL guest startup stage. Bothdocker versionanddocker psthen returned exit code 1; the Linux Engine named pipe was unavailable.Error (user path redacted)
Earlier startups also failed on the sibling host component
docker-secrets-engine/engine.sock. Renaming the socket-only parent directories allowed one successful startup, but was not a durable fix.Read-only checks
fsutil reparsepoint queryon the affected socket returned Windows error 1920 (ERROR_CANT_ACCESS_FILE).CreateFileWprobe with desired access 0, share mode 7,OPEN_EXISTING, andFILE_FLAG_OPEN_REPARSE_POINTalso returned error 1920.The host-socket failure is reproducible across the two tested WSL versions; I cannot establish whether its underlying cause is in Docker's host socket lifecycle, Windows AF_UNIX handling, or another component. I am not claiming a confirmed NTFS/AFD defect.
The 4.90.0 release notes mention a fix for startup failure after an ungraceful shutdown leaves a stuck socket. Is this Ingest-server / normal-stop case covered by that fix? Is there a supported non-destructive recovery or a targeted diagnostic for this case?
This report intentionally includes only versions, sanitized errors, and reproduction observations. No diagnostic bundle, configuration, credentials, project source, or data is attached.
PluginsKers commentedon Sep 11, 2026
Independent reproduction on Docker Desktop 4.90.0 (238679), including after a successful normal CLI shutdown.
Environment: Windows 11 Pro 25H2, build 26200.9445, x64; WSL 2.6.3.0, kernel 6.6.87.2-1; WSL2 backend; Docker Engine 29.7.2 when running. Desktop and com.docker.backend.exe both report 4.90.0.238679. Desktop auto-start is disabled.
Observed twice on this affected machine on 2026-09-11:
%LOCALAPPDATA%\Docker\runand%LOCALAPPDATA%\docker-secrets-enginedirectories and let Desktop recreate them.docker --context desktop-linux infosucceeds. An existing localalpine:3.22image runs/bin/echosuccessfully with--rm --pull=never --network none.docker desktop stop --timeout 60. It exits 0; the CLI log reportsno docker processes running.No force-kill, sleep or Windows reboot occurred between the healthy run and failed restart in either cycle. This is a reproduction on an existing affected installation, not a fresh-install test.
In the second cycle, the CLI logged no Docker processes at 07:30:01 UTC, the installed executable was launched at 07:30:09 UTC, and the backend logged this crash at 07:30:13.474 UTC. The username is redacted:
After the failure,
fsutil reparsepoint queryreturned error 1920, including afterwsl --shutdown. This does not establish NTFS corruption or a specific driver defect. Renaming both runtime-only directories restored the engine and the container smoke check again; existing containers and images remained available. That recovery did not fix the next stop/start cycle.A possible follow-up to investigate is recovery in the shared host socket startup path: if individual socket cleanup fails with error 1920, quarantine only the known runtime-only directories under exclusive Desktop ownership, before any listeners bind, and recreate them. Renaming a directory after sibling listeners have started would need to be avoided. The normal CLI stop/start cycle above should be a regression check. This is a proposal, not a validated code fix.
I could not find the backend implementation in this feedback repository. If the responsible component is public, please point me to it so I can investigate a targeted PR.
tasosbeast commentedon Sep 14, 2026
Reproduced on Docker Desktop 4.91.0 after a normal, controlled shutdown.
Environment:
Reproduction:
docker desktop stop.docker desktop start.starting services: initializing Ingest server: listening on unix://C:/Users/<user>/AppData/Local/Docker/run/sailor-ingest.sock: rename .../sailor-ingest.sock .../sailor-ingest.sock.stale: The file cannot be accessed by the system.The issue therefore persists in 4.91.0 and can occur after a normal controlled stop, not only after an unclean shutdown.
The existing workaround still works:
%LOCALAPPDATA%\Docker\run%LOCALAPPDATA%\docker-secrets-engineDocker volumes and containers remain intact after applying the workaround.
daviddach commentedon Oct 4, 2026
Additional reproducible startup failure on Docker Desktop 4.91.0.239619, persisting after a Windows restart. This is an observed affected-installation sequence, not a clean-install reproduction or a confirmed root cause.
Environment: Windows 11 Home 25H2, build 26200.9457; WSL 2.7.11.0, kernel 6.18.33.2-2, WSLg 1.0.73.2. Persistent Docker storage is configured on a separate local drive; the settings-file hash remained unchanged. Current Engine version cannot be verified while unavailable.
Observed sequence (all times UTC, 2026-10-04):
docker desktop stop --timeout 30hung beyond its requested timeout. After verifying process identities, only the failed Desktop/backend process family was stopped. The containing runtime directories were inspected as ordinary, non-linked directories containing zero-length runtime endpoints, not persistent settings or data.%LOCALAPPDATA%/Docker/runby renaming it to a unique sibling, represented here asrun.<quarantine-A>. One normal startup passed that endpoint, then failed at%LOCALAPPDATA%/docker-secrets-engine/engine.sockwith the same rename-to-.staleaccess error at 02:02:53.%LOCALAPPDATA%/docker-secrets-enginedirectory asdocker-secrets-engine.<quarantine-B>. One normal startup then failed again at the recreatedDocker/run/sailor-ingest.sockat 02:05:27. These were sequential directory changes with a startup between them, not a simultaneous two-directory recovery. No usable engine was established.engine.sockremains but the previously recordedengine.sock.staleis no longer listed; the cause/time of that disappearance is unknown. A later normal shutdown command also timed out; its stalled command helpers were cancelled, leaving failed application processes present.engines shutdown completeat 05:13:16.529642900.docker infocould not find thedockerDesktopLinuxEnginepipe. Further attempts stopped.Error, with only the account-specific prefix replaced by
%LOCALAPPDATA%and line breaks added:Application schedules/workers are paused. PostgreSQL was not started during these attempts; its last independent inspection showed stopped/exit0. Current container/volume health cannot be freshly verified without the engine. There is no demonstrated database corruption or confirmed Windows cause. No factory reset, purge/prune, reinstall, upgrade, WSL unregister, ACL change, volume replacement or database restore was performed.
Could maintainers provide a supported recovery procedure preserving existing configuration, containers, volumes and database contents, and a supported way to stop this failed runtime when the normal stop command hangs? What minimum additional sanitized, read-only evidence would distinguish the causes? Any proposed procedure will be reviewed before execution.
Diagnostics ID: none — no diagnostic bundle has been uploaded. Text only; no screenshots, raw logs, project files or private data attached.
ctalledo commentedon Oct 7, 2026
Duplicate of #460.
Should be fixed in DD 4.92.
bearberni commentedon Oct 14, 2026
Follow-up to my earlier report: #554 (comment)
I verified the previously failing normal stop/start case on Docker Desktop 4.95.0 (242831), Engine 29.8.2, on this Windows host on 2026-10-12. It no longer reproduces here.
docker desktop stop --timeout 60returned exit code 0 (about 18.6 seconds).docker desktop start --timeout 120. It returned exit code 0 (about 7.3 seconds), and the engine responded normally.Existing
.staleentries were left untouched by the test. There was no force-kill, WSL shutdown, reset, reinstall or manual/scripted cleanup between stop and start; this does not make a claim about Docker's own internal startup cleanup. Existing Kubernetes workloads eventually became ready, with the checked resource/storage identities, settings and public certificate unchanged.This was one controlled normal stop/start cycle on an existing affected installation, not a test of forced termination, sleep/resume or a Windows restart. I have retired my project's automatic directory-renaming workaround for this installation. No raw logs, diagnostics, project data or personal paths are attached.
Thank you for the fix and the version guidance.