How to fix error during connect: This error may indicate that the docker daemon is not running in Docker
This error occurs on Windows when Docker Desktop is not running or cannot start. The Docker CLI cannot communicate with the Docker daemon through the named pipe.
Quick fix
Fixes error during connect: This error may indicate that the docker daemon is not running
Start-Process "C:\Program Files\Docker\Docker\Docker Desktop.exe"- Start Docker Desktop
- Verify Docker is running
- Restart Docker Desktop service
- Switch Docker daemon (if using Windows Containers)
Start-Process "C:\Program Files\Docker\Docker\Docker Desktop.exe"error during connect: This error may indicate that the docker daemon is not running
What this error means
When you run Docker commands on Windows, the Docker CLI needs to communicate with the Docker daemon (dockerd). On Windows, this communication happens through a named pipe at `//./pipe/docker_engine` rather than a Unix socket. This error appears when: - Docker Desktop is not running - Docker Desktop failed to start properly - The Windows Containers or Hyper-V/WSL2 backend is misconfigured - There's a conflict with other virtualization software The full error message typically includes: "In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running."
Typical symptoms
- Docker commands fail with 'error during connect' message
- PowerShell or Command Prompt shows pipe connection errors
- Docker Desktop icon shows 'Docker Desktop is starting...' indefinitely
- The Docker whale icon in the system tray is not present or shows an error state
- Running 'docker version' only shows Client information, not Server
Common causes
- Docker Desktop application is not running
- Docker Desktop service failed to start properly
- Hyper-V or WSL2 backend is not properly configured
- Virtualization is disabled in BIOS/UEFI settings
- Conflict with VirtualBox, VMware, or other virtualization software
- Windows Hypervisor Platform feature is not enabled
- Corrupted Docker Desktop installation
- Insufficient Windows permissions (need to run as Administrator)
How to fix "error during connect: This error may indicate that the docker daemon is not running"
The most common fix is simply starting Docker Desktop:
1. Click the Windows Start menu
2. Search for "Docker Desktop"
3. Click to launch the application
4. Wait for the whale icon in the system tray to stop animating (becomes solid)
Alternatively, you can start Docker Desktop from PowerShell:
Start-Process "C:\Program Files\Docker\Docker\Docker Desktop.exe"After Docker Desktop starts, verify the daemon is accessible:
docker versionYou should see both Client and Server information. If you only see Client info, the daemon is still not running.
Also check:
docker infoThis provides detailed information about the Docker environment.
If Docker Desktop appears running but commands still fail, restart the service:
Using Windows Services:
1. Press Win+R, type services.msc, press Enter
2. Find "Docker Desktop Service"
3. Right-click and select "Restart"
Using PowerShell (as Administrator):
Restart-Service -Name "com.docker.service"If you're switching between Linux and Windows containers, the daemon may be in the wrong mode:
Using PowerShell:
& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemonUsing Command Prompt:
"C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemonYou may need to run this command multiple times if it doesn't work on the first try.
Docker Desktop requires virtualization support. Verify it's enabled:
Check if Hyper-V is enabled:
1. Open "Turn Windows features on or off"
2. Ensure "Hyper-V" is checked (all sub-features)
3. Ensure "Windows Hypervisor Platform" is checked
4. Restart Windows if you made changes
Check Task Manager for virtualization:
1. Open Task Manager (Ctrl+Shift+Esc)
2. Go to Performance tab
3. Look for "Virtualization: Enabled" at the bottom
If virtualization is disabled, you'll need to enable it in your BIOS/UEFI settings.
If using WSL2 backend (default for Windows Home), ensure it's up to date:
wsl --update
wsl --shutdownThen restart Docker Desktop.
Check your WSL distributions:
wsl -l -vYou should see "docker-desktop" and "docker-desktop-data" distributions.
If other solutions don't work, reset Docker Desktop:
1. Open Docker Desktop
2. Click the gear icon (Settings)
3. Go to "Troubleshoot" (or click the bug icon)
4. Click "Reset to factory defaults"
Warning: This removes all containers, images, and volumes. Back up important data first.
As a last resort, perform a clean reinstall:
1. Uninstall Docker Desktop from Windows Settings > Apps
2. Delete remaining Docker data:
Remove-Item -Recurse -Force "$env:APPDATA\Docker"
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\Docker"
Remove-Item -Recurse -Force "$env:PROGRAMDATA\Docker"
Remove-Item -Recurse -Force "$env:PROGRAMDATA\DockerDesktop"3. Restart Windows
4. Download and install the latest Docker Desktop from docker.com
5. Follow the installation prompts
Advanced notes
Running as Administrator:
In the default daemon configuration on Windows, the Docker client may need to run elevated (as Administrator) to connect. If you're not in the "docker-users" group, run your terminal as Administrator.
Adding user to docker-users group:
net localgroup docker-users "your-username" /ADDLog out and back in for changes to take effect.
Conflicts with other virtualization software:
- VirtualBox versions before 6.0 conflict with Hyper-V. Update to VirtualBox 6.0+ or uninstall it.
- VMware Workstation versions before 15.5.5 have similar conflicts.
- Some gaming software (anti-cheat systems) disable Hyper-V on boot.
Re-enabling Hypervisor after it was disabled:
bcdedit /set hypervisorlaunchtype autoThen restart Windows.
WSL2 vs Hyper-V backend:
- Windows Home: Only WSL2 backend available
- Windows Pro/Enterprise: Both options available
- WSL2 is recommended for most use cases due to better performance
Frequently asked questions
- What does "error during connect: This error may indicate that the docker daemon i" mean?
- When you run Docker commands on Windows, the Docker CLI needs to communicate with the Docker daemon (dockerd). /pipe/docker_engine rather than a Unix socket. This error appears when: - Docker Desktop is not running - Docker Desktop failed to start properly - The Windows Containers or Hyper-V/WSL2 backend is misconfigured - There's a conflict with other virtualization software The full error message typically includes: "In the default daemon configuration on Windows, the docker client must be run elevated to connect.
- How do I fix "error during connect: This error may indicate that the docker daemon i"?
- This error occurs on Windows when Docker Desktop is not running or cannot start. The Docker CLI cannot communicate with the Docker daemon through the named pipe.
- What causes "error during connect: This error may indicate that the docker daemon i"?
- Docker Desktop application is not running Docker Desktop service failed to start properly Hyper-V or WSL2 backend is not properly configured
- Is the "error during connect: This error may indicate that the docker daemon i" error serious?
- It is a medium-severity error โ more of a blocker than a risk. The steps above resolve it.
Official resources & further reading
- ๐Docker Official Documentation
- ๐Troubleshooting the Docker daemon - Docker Docs(Official Docs)
- ๐Troubleshoot Docker Desktop for Windows(Official Docs)
- ๐Common troubleshooting topics - Docker Docs(Official Docs)
- ๐Start the Docker daemon - Docker Docs(Official Docs)
- ๐ฌ
- ๐ฌDocker cannot start on Windows - Stack Overflow(Stack Overflow)
- ๐ฌ
- ๐
- ๐
- ๐