That message is the Docker CLI telling you the engine on the other side of the named pipe never answered – on Windows with the Hyper-V or WSL2 backend, it usually means the docker service is stopped, is stuck mid-start, or its virtual switch lost the network. The fix is to restart the Docker Engine service, then confirm the Hyper-V socket (hvsocket) and the docker-users membership survived the reboot. This guide walks the recovery order, the log lines that tell the failures apart, and the settings that keep the timeout from returning after every Windows update.

What the "Timed out dialing Hyper-V socket" Message Actually Reports

The client half of Docker Desktop on Windows talks to the engine over npipe:////./pipe/docker_engine, not TCP port 2375. When Docker Desktop runs on the Hyper-V backend, that named pipe is brokered through a Hyper-V socket, and the CLI rejects the call after its default dial window expires. The timeout means the pipe was never opened, so the engine is either down, still initializing, or blocked by a permission or networking fault on the host.

Two daemons can produce the identical text. Docker Desktop ships its own engine inside the desktop VM, while a separate install of Docker Engine (the docker Windows service from the Moby project) listens on the same pipe name. If both are installed, the client can dial the pipe that the wrong service owns, and the dial fails even though one engine is healthy.

Read the whole error before acting. failed to connect to the backend is the generic wrapper; the clause after it names the socket file or pipe and the deadline. A socket path with docker_engine is the local engine, while docker_cli or a user-scoped pipe means the CLI is configured for a context that points elsewhere. That single detail decides whether you restart a service or switch contexts.

The timeout value is not a Docker constant you can tune in daemon.json. On Docker Desktop it is set inside the CLI's connection handling, and the documented override is the wait behavior of the service, not a client flag. Treat the number as a symptom, not a setting: if the engine were ready, the dial would succeed in milliseconds.

Check Whether the Docker Engine or the Client Is at Fault First

Before restarting anything, separate a dead engine from a misdirected client. From an elevated PowerShell window, run docker context ls and note which context has the asterisk. A context pointing at desktop-linux belongs to Docker Desktop, while default uses the named pipe directly; a stale context that names a host or a TLS endpoint gives you this timeout with a perfectly healthy engine running.

Then ask the engine itself. Get-Service com.docker.service reports the Docker Desktop service state, and Get-Service docker reports the standalone engine; both should be Running for their respective stacks. If both are stopped or one is missing, you have found the fault without touching a single setting.

Confirm the pipe exists. In PowerShell, Get-ChildItem \.\pipe\ | Where-Object Name -like 'docker*' lists the live pipes; absence of docker_engine while a Docker process appears in Task Manager means the engine thread is alive but not serving. That combination – process present, pipe missing – is the classic stuck-start state after a Windows update restarts the WSL or Hyper-V components under the desktop VM.

If the pipe is present and the service is running, the client is the problem. Switch back with docker context use desktop-linux or docker context use default, then retry the failing command. This step resolves a large share of cases where users installed a second engine or a CI agent changed the active context without telling anyone.

Restart Docker Desktop and Its Engine Service in the Right Order

Use this sequence when the service is stopped, the pipe is missing, or the daemon log shows a failed start. Order matters because Docker Desktop relaunches its VM on startup, and killing the service while the VM is initializing leaves the Hyper-V socket in a half-open state that reproduces the timeout.

1: Right-click the Docker whale in the notification area and choose Quit Docker Desktop. Wait until the tray icon disappears; this can take up to 30 seconds while the VM shuts down. 2: In an elevated PowerShell, run Stop-Service com.docker.service -Force. The -Force flag also stops dependent services that hold the pipe. 3: Run Get-Process -Name 'Docker Desktop','com.docker.backend','vpnkit' -ErrorAction SilentlyContinue | Stop-Process -Force to clear orphans left by a crashed backend. 4: Start the service again with Start-Service com.docker.service, then launch Docker Desktop from the Start menu and wait for Engine running in the status bar. 5: Verify with docker version. The Server block must report a version, API version, and OS/Arch; a client-only response means the dial failed again.

If step 4 returns an error instead of a service state, check the Windows Event Viewer under Applications and Services Logs > Docker Desktop for the startup failure. The most common cause is a Hyper-V switch or WSL distro that cannot start, and the event text names the component that refused.

When the engine starts but the dial still times out, reset the Docker Desktop engine state from Settings > Troubleshoot > Restart, which rebuilds the VM without deleting images. Reserve Reset to factory defaults for the case where restart fails twice; it deletes containers and images, and you should export anything you need first with docker save.

Trace the Failure in Docker Desktop Logs and the Daemon Log

Guessing wastes more time than reading. Docker Desktop writes a rotating log bundle under %LOCALAPPDATA%\Docker\log\vm, and the file dockerd.log inside that folder records the engine's own startup, including the socket it binds and any backend initialization error. Open it in a text editor and search for failed to start or listen; both appear near the top when the engine cannot serve.

On a standalone engine installed as a Windows service, the daemon log lives at C:\ProgramData\docker\daemon.log unless you redirected it. Start the service with dockerd --debug from an elevated prompt if the file is missing, which prints startup detail to the console and makes the binding failure visible immediately.

The Hyper-V socket itself has a diagnostic surface. Per Microsoft's documentation for the Hyper-V sockets API, the host service and the guest service must agree on a service GUID, and the host side must be listening before the guest dials. Docker Desktop handles that handshake for you, but a third-party container tooling package that also claims a backend socket can hold the GUID and starve Docker's listener.

Correlate timestamps. If the Docker Desktop log shows a successful engine start at 09:14 and your failed command ran at 09:12, the timeout was real at that moment and the retry will pass. If the engine start line is absent entirely, the VM never booted and the log for the VM boot appears in the same folder under a separate file.

Is Hyper-V, WSL2, or a Third Backend Behind the Timeout

Docker Desktop on Windows 10 and 11 can run on the WSL2 backend or the Hyper-V backend, and the error text mentions Hyper-V in both cases because the pipe bridge is the same. WSL2 became the default for new installs several years ago, and the switch lives under Settings > General > Use the WSL 2 based engine. Turning that checkbox off moves Docker Desktop onto a full Hyper-V VM and changes which components must be healthy.

Backend What must be running Typical trigger for the timeout Fast check
WSL2 LSLSVC service, the docker-desktop WSL distro Distro stopped after a Windows update or a wsl --shutdown wsl -l -v shows Stopped
Hyper-V vmms service, the DockerDesktopVM virtual machine VM paused by host memory pressure or a failed checkpoint Hyper-V Manager shows Saved or Paused
Both com.docker.service, docker-users group Service stopped, user not in the group Get-Service com.docker.service

For a WSL2 backend failure, run wsl -l -v and confirm the docker-desktop distribution exists and is running; if it is stopped, wsl -d docker-desktop starts it and the pipe returns within a few seconds. For a Hyper-V backend, open Hyper-V Manager and check that DockerDesktopVM is running, then start it manually if it is saved. Both checks take under a minute and avoid a full reinstall.

A third backend exists in enterprise builds: Docker Desktop can be pointed at a remote engine, and Docker Engine can run natively on Windows Server for Windows containers. On Windows Server, there is no Docker Desktop at all, and the docker service is the only engine; the timeout there almost always means the service is disabled or the user lacks membership in docker-users.

Fix Hyper-V Virtual Switch and Network Binding Problems

When the engine starts and the pipe works, but containers cannot reach the network and commands against the backend still stall, the Hyper-V virtual switch is the suspect. Docker Desktop creates a switch named DockerNAT (Hyper-V backend) or a WSL virtual adapter; a switch that lost its binding after a VPN client install causes the backend to hang on network setup, which surfaces to the CLI as the dial timeout.

Open Hyper-V Manager > Virtual Switch Manager and confirm the Docker switch exists and is bound to a physical adapter. If it is missing, Docker Desktop recreates it on the next engine restart; if it is bound to the wrong adapter, switch it to the active one and restart the engine. VPN clients that install a filter driver are the most common cause of a switch that looks correct but passes no traffic.

Check firewall rules for the named pipe. Windows Defender Firewall does not filter named pipes, but third-party endpoint protection can block \.\pipe\docker_engine for users outside an allowed group. If the CLI works from an elevated prompt and fails from a normal one, group membership or endpoint policy is the cause, not the engine.

Test the host resolver from inside the engine once the pipe is back: docker run --rm mcr.microsoft.com/windows/servercore:ltsc2022 nslookup example.com on the Windows container path isolates DNS issues from daemon issues. If that run returns records but your app containers time out, the fault moved to the container network, and the daemon connection is healthy.

Match the Fix to Your Windows and Docker Desktop Version

The failure surface shifted across Docker Desktop releases. Recognize your version from Settings > Software updates or the About panel before applying a fix from an old forum thread, since some workarounds no longer exist as toggles and others were replaced by the WSL2 default.

Docker Desktop era Engine location What changed for this error
2.0–2.5 (2019–2020) Hyper-V VM MobyLinuxVM Explicit Expose daemon on tcp://localhost:2375 switch; timeouts often fixed by restarting Docker for Windows Service
3.x (2021) Hyper-V or WSL2 WSL2 became the recommended backend; VM renamed DockerDesktopVM; reset-from-Troubleshoot introduced
4.x (2021 onward) WSL2 default, Hyper-V optional com.docker.service split from the per-user backend; user-scoped docker-users group required
Windows Server Native dockerd, no desktop VM No Hyper-V socket; docker service and group membership are the whole story

On the 4.x branch, the service name is com.docker.service and it runs as a per-machine service, while a per-user process handles the CLI bridge. Switching the active context to default on a machine where Docker Desktop is the only engine forces the CLI to dial the desktop pipe directly; that usually works and is a reliable diagnostic for context corruption.

Keep the Windows host patched but stage the Docker Desktop update separately. A Windows cumulative update that reboots the machine after Docker Desktop was launched with a stale WSL kernel is a frequent cause, and the recovery is a service restart plus a wsl --update from an elevated prompt rather than a reinstall.

Prevent the Timeout After Reboots, Updates, and Sleep

The engine rarely fails on a fresh boot; it fails when a scheduled task or an update happens mid-session. Windows Fast Startup leaves the Hyper-V platform in a saved state, and Docker Desktop's auto-start races that resume, which produces exactly one failed dial after each cold boot.

Set Docker Desktop to start only after the user signs in, from Settings > General > Start Docker Desktop when you sign in to your computer, and leave Fast Startup enabled or disable it for predictable results. If you disable Fast Startup in Control Panel > Power Options > Choose what the power buttons do, the Hyper-V platform resets cleanly and the engine starts in a known state.

For standalone Docker Engine on a server, set the service to Automatic (Delayed Start) in services.msc so it starts after the network stack is ready. Delaying the start by 30–60 seconds avoids the case where dockerd binds the pipe before the virtual switch exists and then reports a failed start that looks like the dial timeout.

Watch memory. The Docker Desktop VM reserves host memory, and a host under pressure saves or pauses the VM; the next CLI call times out until the VM resumes. Keep at least 2 GB free on the host beyond what the VM reserves, and close memory-heavy applications before large image builds.

Reproduce and Validate the Fix With Two Short Commands

A restart that "looks fixed" is not fixed until you prove the pipe serves commands. Run docker version and read the Server block: version, API version, Go version, Git commit, OS/Arch, and the Engine section with the runtime and containerd details. If any field is missing, the client could not reach the engine and you have not finished.

Then run the cheapest end-to-end check: docker run --rm hello-world. It pulls a tiny image, starts a container, and exits cleanly, which exercises the engine and the container runtime in one call. A successful run rules out a half-initialized engine.

Repeat both commands after a reboot and after the next Windows update. If the second run fails where the first passed, the startup race from the previous section is your root cause, and the delayed-start setting is the durable fix rather than a one-off restart.

Capture the exact text of any recurring failure, including the pipe name and the timeout clause, and add it to your team's runbook. The message family is stable, so a documented first response – context check, service state, pipe presence, restart order – resolves the recurring cases without escalating to image rebuilds or reinstalls.

FAQ

Does this error mean my containers were deleted?

No. The dial timeout is a client-to-engine connection failure, and the containers live with the engine, so they survive a service restart. A factory reset deletes them, and that is why you should try Troubleshoot > Restart first.

Is this the same as the "cannot connect to the Docker daemon" message on Linux?

They share a root cause but differ in transport: Linux fails over /var/run/docker.sock while Windows fails over the named pipe and Hyper-V socket. The remedies diverge at the service name, so Linux guides naming systemctl start docker will not help on Windows.

Why does the error come back only when I am on my company VPN?

VPN filter drivers can interrupt the Hyper-V virtual switch binding or block the pipe for non-admin users. Disconnect the VPN, restart the engine, and reconnect to confirm; a split-tunnel policy or an endpoint rule for \.\pipe\docker_engine is the usual culprit.

Can I raise the timeout instead of fixing the engine?

There is no supported client-side flag for this dial timeout, and raising any wait would only hide a stopped engine. Fix the service or the context, then the dial completes in milliseconds.

Which service should I restart if Docker Desktop and Docker Engine are both installed?

Restart both in order: com.docker.service first, then docker. Whichever owns the active context does the serving, and restarting the pair avoids a stale pipe lock held by the other.

Does Docker Desktop need Hyper-V enabled if I use WSL2?

WSL2 uses the Hyper-V platform, so the Windows feature must be enabled even though Docker Desktop no longer creates its own VM. Disabling Hyper-V to "speed up" the machine breaks the backend and produces this timeout.

How do I confirm a normal Windows user is allowed to use Docker?

Run net localgroup docker-users in an elevated prompt; the account must appear, and a domain account needs the domain-qualified name. Adding a user requires a fresh sign-in before the pipe grants access.

Is an uninstall and reinstall the reliable last resort?

It works, but it is slower than the factory reset path and can leave WSL distros behind. Export your images first, uninstall Docker Desktop, remove leftover docker-desktop WSL distros with wsl --unregister, then reinstall and verify with hello-world.