Repository navigation
Description
Related: docker/for-win#14176 - same class (an AF_UNIX socket in the Docker/run directory aborts startup), but an older, different case: OTel manager, Docker 26.1.4, a socket-creation protocol error. This report is a distinct, current failure - error 1920 on
removeof an existing socket, Inference manager + Secrets Engine, Docker Desktop 4.81.0 / engine 29.6.1.
Expected behavior
Docker Desktop starts. If a leftover AF_UNIX socket file cannot be removed, the
backend either forces past it (bind/replace, unique path, retry) or degrades the
affected optional service — the engine still comes up.
Actual behavior
The backend aborts the entire startup and shows "Docker Desktop encountered an
unexpected error and needs to close." The daemon never starts. The failing step is
a remove of a socket file Docker itself created, which Windows rejects with
error 1920 (ERROR_CANT_ACCESS_FILE).
Two different services fail this way, sequentially — fixing the first reveals
the next, with a different message, which makes this look like several unrelated bugs:
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. (listener: The filename, directory name, or volume label syntax is incorrect.)
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.)
Note the message also contains a second, likely-bogus clause — listener: The filename, directory name, or volume label syntax is incorrect — for the path
unix://C:/Users/..., which mixes a URI scheme with a Windows path.
Information
- Diagnostics ID:
D41CE6AC-02AA-47C6-93AC-363D8C0B2A30/20260717123707
(earlier occurrence of the same fault:.../20260717093426) - Docker Desktop 4.81.0 (Windows; x64)
- Engine 29.6.1, API 1.55,
overlayfs, kernel6.18.33.2-microsoft-standard-WSL2 - Windows 11 Home Single Language, 10.0.26200
- WSL2 backend, containerd snapshotter enabled
Steps to reproduce
- Have Docker Desktop running normally.
- Terminate it uncleanly (force-kill the process; a crash or hard power-off does the same).
This leaves%LOCALAPPDATA%\Docker\run\dockerInferenceand
%LOCALAPPDATA%\docker-secrets-engine\engine.sockbehind. - Start Docker Desktop again.
- It fails with the error above and never starts.
Reproduced repeatedly on this machine: every ungraceful termination puts it in
this state, and it stays broken across restarts until the directory is renamed.
The orphaned socket is unremovable by any normal means
Every one of these fails with error 1920 on the leftover file:
| Method | Result |
|---|---|
[System.IO.File]::Delete() |
error 1920 |
Remove-Item -Force / -Recurse |
error 1920 |
fsutil reparsepoint query / delete |
error 1920 |
robocopy empty-dir mirror |
fails |
WSL rm -rf via /mnt/c/... |
fails silently, file remains |
| Renaming the PARENT directory | works |
The files report 0 bytes with the ReparsePoint attribute. The parent directory
renames happily even though its contents cannot be touched or even stat'd — which
is what makes the workaround possible.
Important: this is not only a stale-leftover problem
With EnableDockerAI: true, startup fails even against a freshly cleared
%LOCALAPPDATA%\Docker\run\ directory. Docker recreates dockerInference
during startup and it is immediately inaccessible, so the very next
remove-then-bind fails. Deleting the leftovers does not fix it; only disabling the
feature does.
Workaround
- Fully quit Docker Desktop.
- Rename the offending directories aside (they cannot be deleted):
%LOCALAPPDATA%\Docker\run%LOCALAPPDATA%\docker-secrets-engine
- Set
"EnableDockerAI": falsein%APPDATA%\Docker\settings-store.json— otherwise
the Inference manager kills startup again on the next launch. - Start Docker Desktop. It comes up clean.
Cost of the workaround: Docker Model Runner is unusable on this machine.
Impact
- A single ungraceful shutdown permanently bricks Docker Desktop startup until
manual filesystem surgery — with no in-product recovery path. "Reset to factory
defaults" is the only offered action and is drastically out of proportion (it
destroys all images, containers and volumes) for a stale socket file. - The error names an internal service and a path, not an action, so the user has
no way to know that renaming a directory is the fix. - An optional subsystem (Inference/Model Runner) can take down the entire
engine, for users who do not use it at all.
Suggested fixes
- Do not treat a failed socket
removeas fatal to the whole backend — fall back
to a fresh unique socket path, or bind over it. - Isolate optional services: the Inference manager failing should disable Model
Runner, not abort engine startup. - Clean these sockets up on startup and on graceful shutdown, and handle
error 1920 explicitly (rename-aside is demonstrably possible where delete is not). - Fix or drop the misleading trailing clause
listener: The filename, directory name, or volume label syntax is incorrectonunix://C:/...paths. - Surface an actionable message + a targeted "clear stale sockets" recovery action
in the error dialog, instead of offering only "Reset to factory defaults".
Activity
bsousaa commentedon Jul 20, 2026
Can you please share a diagnostics?
baramsesang-source commentedon Aug 19, 2026
Still reproducing on 4.87.0. On this machine, an unclean shutdown or a Windows reboot is not required to reproduce the failure — a clean stop followed by an immediate restart in the same session is enough.
Environment
com.docker.service: Stopped / Manual — it was not started during these reproductions, and no UAC prompt was required"EnableDockerAI"was alreadyfalseinsettings-store.json, but that did not prevent thesailor-ingest.sockfailure. With Inference disabled, the same failure class still occurs on a different internal AF_UNIX endpoint (the Ingest server).Reproduction: clean stop, no reboot
docker desktop stop→ prints✓ Stopping Docker Desktop, exits 0sending desktop state:ExitHealthyState, thenelectron processes have shut down,shutting down vital services,[socketforwarder] root context has been cancelledDocker Desktop/com.docker.*processes, 0 Docker named pipes,docker-desktopWSL distroStoppedThe five runtime endpoints are still on disk after the clean stop completes, with
LastWriteTimeunchanged from the previous start:%LOCALAPPDATA%\Docker\run\dockerInference%LOCALAPPDATA%\Docker\run\dockerEthernetVfkit%LOCALAPPDATA%\Docker\run\sailor-ingest.sock%LOCALAPPDATA%\Docker\run\userAnalyticsOtlpHttp.sock%LOCALAPPDATA%\docker-secrets-engine\engine.sockIn my runs, startup aborted at
sailor-ingest.sock(Ingest server) before any later socket-related failure was logged. This is a different first fatal endpoint fromdockerInferenceor the Secrets Engine socket reported in related cases.I also tried the two shutdown paths already described in this issue, on the same machine and the same day:
docker desktop stop(exit 0) → Windows Restart → start = FAILIn my case, a reboot did not clear the endpoints. They survived with their original timestamps, and the next start still failed.
Workaround (3/3 here)
With no Docker process running, rename (do not delete):
%LOCALAPPDATA%\Docker\run%LOCALAPPDATA%\docker-secrets-engineto
<name>.stale-<timestamp>, then start Docker Desktop normally.The Engine responded in about 10 seconds each time on the same Docker Desktop 4.87.0 installation, without elevation. Named volumes retained their original creation timestamps, and the containers returned healthy with their ports published. No data loss occurred, and "Reset to factory defaults" was not needed.
This machine has accumulated 13
run.stale-*and 10docker-secrets-engine.stale-*directories since 2026-08-15, showing that this has recurred repeatedly rather than being a one-off event.Observed vs. not claimed
Observed:
sailor-ingest.sock.The file cannot be accessed by the system.Not claimed:
Related observations also look similar to #460 and #554.
A local Docker diagnostics bundle is available and can be uploaded if maintainers need a Diagnostics ID.
eljaunis commentedon Aug 28, 2026
Still reproduces on Docker Desktop 4.88.1 (237512) after a clean Docker-managed restart.
Environment
docker-desktopversion 2desktop-linuxWslEngineEnabled=trueUseLibkrun=falseEnableDockerAI=falseduring the final persistence testReproduction
%LOCALAPPDATA%\Docker\run%LOCALAPPDATA%\docker-secrets-enginerunning;docker version,docker info, anddocker run --rm hello-worldall exited 0. Four existing services returned healthy, with 23 containers and 34 volumes preserved.docker desktop restartfrom that healthy state.backend cancelling with error: <nil>, stopped the WSL engine, and the subsequent startup failed on the newly created Sailor socket:The same failure reproduced after disabling Docker AI and recreating both parent directories, so on this machine the Docker AI workaround does not make restart persistent.
sailor-ingest.sockis the first fatal endpoint.Renaming both parent directories again restores one successful start. No distribution unregister, factory reset, VHDX change, reinstall, socket deletion, or Docker data cleanup was performed.
bsousaa commentedon Aug 31, 2026
We have a fix in progress that will be released with Desktop 4.89
max171198 commentedon Sep 13, 2026
Still reproducing on Docker Desktop 4.90.0 on Windows 11 Home 23H2, build 22631.6199 (x64), with WSL 2.7.14.0. The active context is
desktop-linux, but the Linux Engine does not come up. I could not establish an Insider/Preview status from the local configuration, so I am not claiming one. This is a different Windows build from the 26200 builds reported above. I also saw the maintainer note that a fix was planned for 4.89; this case remains affected after updating to 4.90.0.The most useful new observation is the 4.90.0 recovery attempt. Startup now tries to rename
%LOCALAPPDATA%\Docker\run\dockerInferencetodockerInference.stale, but Windows rejects the rename withThe file cannot be accessed by the system(ERROR_CANT_ACCESS_FILE). The backend then aborts, and the additional listener message about invalid filename/directory/volume-label syntax is still present. This is an observed failure of the rename, not a conclusion about its root cause.Brief chronology on this machine:
dockerInferencewas a 0-byte ReparsePoint, not a normal directory. A Windows reboot did not resolve it. A targetedfsutil reparsepoint deletefailed with the same access error.%LOCALAPPDATA%\Docker\rundirectory was renamed aside, not deleted. Docker created a newrundirectory anddockerInferenceendpoint on the next start, but the same failure class recurred. At one point the analogous error also appeared for%LOCALAPPDATA%\docker-secrets-engine\engine.sock; that parent runtime directory was likewise only renamed aside.dockerInference→dockerInference.stalerename described above. The Linux Engine remains unavailable.I did not add an
enableInferencekey tosettings-store.json; that key is absent locally. I attempted the officialdocker desktop disable model-runnercommand once, but it could not change the setting because the backend had already failed before its localdockerBackendApiServerpipe became available. I therefore cannot say whether Model Runner was enabled or whether disabling it would fix this machine.No factory reset, Clean/Purge, uninstall, volume deletion, WSL unregister, or VHDX manipulation was performed. The renamed runtime directories were retained. The Docker data VHDX showed the same size and modification time after the in-place update; that observation is not a byte-level integrity proof.
A local Docker diagnostics bundle was generated successfully. It has not been uploaded because it may contain personal or sensitive local information. I can provide it through an appropriate private diagnostics channel if a maintainer requests it, after reviewing what would be shared.
Could a maintainer clarify:
.stalerename in 4.90.0 part of the planned recovery logic for this failure class?ERROR_CANT_ACCESS_FILE?