Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Desktop startup fails with "Failed to stop Docker daemon Windows service" #14531

Open
erikatsg opened this issue Jan 14, 2025 · 0 comments

Comments

@erikatsg
Copy link

erikatsg commented Jan 14, 2025

Description

I am using Windows 10, Docker Desktop 4.37.1 and Windows Containers. I am in an enterprise environment with an unpriviledged account, but I installed Docker Desktop with admin priviligies.

First time Docker Desktop starts, and by that Docker Engine, DD failes to start DE and the following error message is seen:

Image

The log file service.txt has the following interesting rows:

[2025-01-14T07:53:36.113970300Z][WindowsDaemon][I] Admin overrides not found on disk. Setup will use the provided values.
[2025-01-14T07:53:36.130265500Z][WindowsDaemon][I] trying to start Windows dockerd with args=-G "docker-users" --config-file "C:\ProgramData\Docker\config\daemon.json" and env=
[2025-01-14T07:54:06.195414100Z][IPCServer][E] (983498d2-4) c9d99a35-ServiceAPI S->C 5c38c3b5-serviceClientCLI POST /windowscontainers/start (31123ms): Internal Server Error

If I chose "Quit" and try to start Docker Desktop again, both DD and DE starts without any error message. The log file then have the following messages:

[2025-01-14T08:00:24.960141200Z][WindowsDaemon][I] Admin overrides not found on disk. Setup will use the provided values.
[2025-01-14T08:00:24.962143600Z][WindowsDaemon][I] trying to start Windows dockerd with args=-G "docker-users" --config-file "C:\ProgramData\Docker\config\daemon.json" and env=
[2025-01-14T08:00:25.407012400Z][Cmd][I] The specified service already exists.
[2025-01-14T08:00:25.734840700Z][WindowsDaemon][I] Starting up
Note how it says that the service (that previously failed?) already exists.

So starting DD a second time gives me, I believe, a functioning DD and DE.

Reproduce

  1. Start Docker Desktop

Expected behavior

Docker Desktop, and Docker Engine, starts without any issues.

docker version

Client:
 Version:           27.4.0
 API version:       1.47
 Go version:        go1.22.10
 Git commit:        bde2b89
 Built:             Sat Dec  7 10:40:21 2024
 OS/Arch:           windows/amd64
 Context:           desktop-windows

Server: Docker Desktop 4.37.1 (178610)
 Engine:
  Version:          27.4.0
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.10
  Git commit:       92a8393
  Built:            Sat Dec  7 10:39:14 2024
  OS/Arch:          windows/amd64
  Experimental:     false

docker info

Client:
 Version:    27.4.0
 Context:    desktop-windows
 Debug Mode: false
 Plugins:
  ai: Ask Gordon - Docker Agent (Docker Inc.)
    Version:  v0.5.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-ai.exe
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.19.2-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.31.0-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.37
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Beta) (Docker Inc.)
    Version:  v0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.27
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    Path:     C:\Program Files\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:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.15.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 2
  Running: 2
  Paused: 0
  Stopped: 0
 Images: 14
 Server Version: 27.4.0
 Storage Driver: windowsfilter
  Windows:
 Logging Driver: json-file
 Plugins:
  Volume: local
  Network: ics internal l2bridge l2tunnel nat null overlay private transparent
  Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog
 Swarm: inactive
 Default Isolation: hyperv
 Kernel Version: 10.0 19045 (19041.1.amd64fre.vb_release.191206-1406)
 Operating System: Microsoft Windows Version 22H2 (OS Build 19045.5247)
 OSType: windows
 Architecture: x86_64
 CPUs: 24
 Total Memory: 29.68GiB
 ID: def8ca39-f73a-4b63-9339-26f21d258f55
 Docker Root Dir: C:\ProgramData\Docker
 Debug Mode: false
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Diagnostics ID

unable to fetch atm, will try again

Additional Info

No response

@erikatsg erikatsg changed the title Docker startup fails with "Failed to stop Docker daemon service" Docker startup fails with "Failed to stop Docker daemon Windows service" Jan 14, 2025
@erikatsg erikatsg changed the title Docker startup fails with "Failed to stop Docker daemon Windows service" Docker Desktop startup fails with "Failed to stop Docker daemon Windows service" Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant