for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Error every time I open Docker Desktop

Open ghost opened this issue 1 year ago • 4 comments

Description

Every single time I open Docker Desktop on windows, an error shows up that says:


Privileged helper service is not running The Privileged helper service is not running. The service runs in the background with SYSTEM privileges. Docker Desktop needs the service to interact with privileged parts of Windows. To learn more about the privileged helper service and the functions it provides, visit the docs ⁠. Would you like to start the service? Windows will ask you for elevated access.


When I click the "Start Service" button, I don't get an elevated access prompt and nothing in the docker console loads. After a few seconds I get an error saying:


An unexpected error occurred Docker Desktop encountered an unexpected error and needs to close. Search our troubleshooting documentation ⁠ to find a solution or workaround. Alternatively, you can gather a diagnostics report and submit a support request or GitHub issue. starting the docker service: pinging com.docker.service: context deadline exceeded


The only option here is "Quit"

Reproduce

Open Docker

Expected behavior

Docker opens normally.

docker version

Client:
 Version:           27.5.1
 API version:       1.47
 Go version:        go1.22.11
 Git commit:        9f9e405
 Built:             Wed Jan 22 13:41:44 2025
 OS/Arch:           windows/amd64
 Context:           desktop-windows
request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2FdockerDesktopWindowsEngine/v1.47/version, check if the server supports the requested API version

docker info

Client:
 Version:    27.5.1
 Context:    desktop-windows
 Debug Mode: false
 Plugins:
  ai: Ask Gordon - Docker Agent (Docker Inc.)
    Version:  v0.7.3
    Path:     C:\Users\admin\.docker\cli-plugins\docker-ai.exe
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.20.1-desktop.2
    Path:     C:\Users\admin\.docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.32.4-desktop.1
    Path:     C:\Users\admin\.docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.38
    Path:     C:\Users\admin\.docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Beta) (Docker Inc.)
    Version:  v0.1.4
    Path:     C:\Users\admin\.docker\cli-plugins\docker-desktop.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Users\admin\.docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.27
    Path:     C:\Users\admin\.docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Users\admin\.docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     C:\Users\admin\.docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Users\admin\.docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.16.1
    Path:     C:\Users\admin\.docker\cli-plugins\docker-scout.exe

Server:
ERROR: request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2FdockerDesktopWindowsEngine/v1.47/info, check if the server supports the requested API version
errors pretty printing info

Additional Info

No response

ghost avatar Feb 03 '25 12:02 ghost

This looks like an issue specific to Docker Desktop, and not related to the docker CLI client. Let me transfer this to the https://github.com/docker/for-win/issues issue tracker.

thaJeztah avatar Feb 13 '25 13:02 thaJeztah

I see the same issue. I have uninstalled and reinstalled Docker Desktop multiple times with no resolution of the issue.

My Windows 11 and Docker configuration is as follows.

Edition: Windows 11 Pro
Version: 22H2
OS build: 22621.4317

Version: 4.38.0 (181591)
Engine: 27.5.1
Compose: v2.32.4-desktop.1
Credential Helper: v0.8.2
Kubernetes: v1.31.4

The diagnostic ID is F9FF7B67-90B8-47F7-96FF-9D067079909B/20250215153202. One thing I observed is that the older version of Docker Desktop used to run additional service called Docker Engine. I do not see it listed in Windows services anymore. Could this be the issue? Any suggestions to resolve this would be appreciated.

Image

svanimisetti avatar Feb 15 '25 15:02 svanimisetti

The installer provided on the website installs an older version, if I stick in the older version without upgrading, it works - kind of. The only thing I've got running on it is OpenWebUI for Ollama. The ironic thing is that I'm running windows 11 Pro 22H2 too...

Really hope that the docker team can fix this.

ghost avatar Feb 15 '25 16:02 ghost

When I click the "Start Service" button, I don't get an elevated access prompt and nothing in the docker console loads

I was able to get the UAC prompt to pop by adding my account to the docker-users group (and restarting) and now when I get the error it seems to work as expected after clicking "Start Service".

avianbc avatar Dec 08 '25 22:12 avianbc