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

DockerDesktopVM stops after a day #14427

Open
nobergg opened this issue Nov 16, 2024 · 0 comments
Open

DockerDesktopVM stops after a day #14427

nobergg opened this issue Nov 16, 2024 · 0 comments

Comments

@nobergg
Copy link

nobergg commented Nov 16, 2024

Description

Running docker desktop with a hyper-v backend. After a day of running the DockerDesktopVM is shutting down and the running containers become unavailable.
Checking the hyper-v manager the DockreDesktopVM state is off.

docker ps returns this error message:
request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.47/containers/json, check if the server supports the requested API version the DockerDesktopVm state is off.
The only way to solve this issue is to restart docker desktop.

Reproduce

Run docker desktop with hyper-v backend.
Wait for a day. (For me it was 3 straight days around 5PM).
DockerDesktopVM is off, thus all containers become unavailable.

Expected behavior

Consistent long term running without crash.

docker version

Client:
 Version:           27.2.0
 API version:       1.47
 Go version:        go1.21.13
 Git commit:        3ab4256
 Built:             Tue Aug 27 14:17:17 2024
 OS/Arch:           windows/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.34.3 (170107)
 Engine:
  Version:          27.2.0
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.21.13
  Git commit:       3ab5c7d
  Built:            Tue Aug 27 14:15:15 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.20
  GitCommit:        8fc6bcff51318944179630522a095cc9dbf9f353
 runc:
  Version:          1.1.13
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    27.2.0
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.2-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.2-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.34
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.15
    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.25
    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.3.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.13.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 16
  Running: 15
  Paused: 0
  Stopped: 1
 Images: 26
 Server Version: 27.2.0
 Storage Driver: overlayfs
  driver-type: io.containerd.snapshotter.v1
 Logging Driver: local
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8fc6bcff51318944179630522a095cc9dbf9f353
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.10.4-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 19.53GiB
 Name: docker-desktop
 ID: ebd4232d-03de-42aa-973a-da84b7e64c22
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile

Diagnostics ID

8E435EF9-26C7-4C46-9176-6F634502472F/20241116162905

Additional Info

& "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check returns:

[2024-11-16T16:27:26.048613600Z][com.docker.diagnose.exe.ipc] bb25b0f8-diagnose -> \.\pipe\dockerBackendApiServer BackendAPI
[2024-11-16T16:27:26.265119400Z][com.docker.diagnose.exe.ipc] (e3ac208e) bb25b0f8-diagnose C->S BackendAPI POST /idle/make-busy
[2024-11-16T16:27:26.298121300Z][com.docker.diagnose.exe.ipc] (e3ac208e) bb25b0f8-diagnose C<-S 8ce9f2e0-BackendAPI POST /idle/make-busy (32.999ms): 0xc000652018
[2024-11-16T16:27:27.266691800Z][com.docker.diagnose.exe.ipc] (e3ac208e-1) bb25b0f8-diagnose C->S BackendAPI GET /idle
[2024-11-16T16:27:27.272362500Z][com.docker.diagnose.exe.ipc] (e3ac208e-1) bb25b0f8-diagnose C<-S 8ce9f2e0-BackendAPI GET /idle (5.2126ms): {"apisInFlight":{"/v1.46/containers/0f608e084c1f7625bcd734ba7c6727dd3255d6a2e0b6ec1182edeead6daee64a/logs from compose/v2.29.2-desktop.2":2,"/v1.47/containers/0be58c57e878/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/0f608e084c1f/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/1ee205cf56bb/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/7120c6c3c128/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/72e2b7d07c7a/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/72f551a08609/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/888d11c6e686/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/cc831d9fd31c/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/ce8459bc63bc/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/e807593f044e/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/ea22204a8dfe/stats from Docker-Client/27.2.0 (windows)":1,"/v1.47/containers/fe4f9414e878/stats from Docker-Client/27.2.0 (windows)":1},"booted":true,"busyReason":["15 container(s)","1 calls to /v1.47/containers/7120c6c3c128/stats from Docker-Client/27.2.0 (windows), 2 calls to /v1.46/containers/0f608e084c1f7625bcd734ba7c6727dd3255d6a2e0b6ec1182edeead6daee64a/logs from compose/v2.29.2-desktop.2, 1 calls to /v1.47/containers/72f551a08609/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/72e2b7d07c7a/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/cc831d9fd31c/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/0f608e084c1f/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/ce8459bc63bc/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/888d11c6e686/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/fe4f9414e878/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/0be58c57e878/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/e807593f044e/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/ea22204a8dfe/stats from Docker-Client/27.2.0 (windows), 1 calls to /v1.47/containers/1ee205cf56bb/stats from Docker-Client/27.2.0 (windows)","timed activities: map[/idle/make-busy:29020015700]"],"containers":15,"timedActivities":{"/idle/make-busy":"float64"},"vmRunning":true}
[PASS] DD0027: is there available disk space on the host?
[SKIP] DD0028: is there available VM disk space?
[PASS] DD0002: does the bootloader have virtualization enabled?
[PASS] DD0020: is the Hyper-V Windows Feature enabled?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[FAIL] DD0004: is the Docker engine running? error during connect: Head "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/_ping": EOF
[PASS] DD0015: are the binary symlinks installed?
[FAIL] DD0031: does the Docker API work? prereq failed: is the Docker engine running?
[PASS] DD0013: is the $PATH ok?
[FAIL] DD0003: is the Docker CLI working? prereq failed: is the Docker engine running?
[PASS] DD0005: is the user in the docker-users group?
[FAIL] DD0038: is the connection to Docker working? prereq failed: is the Docker engine running?
[PASS] DD0014: are the backend processes running?
[PASS] DD0007: is the backend responding?
[SKIP] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[PASS] DD0006: is the Docker Desktop Service responding?
[FAIL] DD0030: is the image access management authorized? prereq failed: is the Docker engine running?
[PASS] DD0033: does the host have Internet access?
[PASS] DD0002: does the bootloader have virtualization enabled?
[PASS] DD0020: is the Hyper-V Windows Feature enabled?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[WARN] DD0004: is the Docker engine running? error during connect: Head "http://%2F%2F.%2Fpipe%2Fdocker_engine_linux/_ping": EOF
[PASS] DD0015: are the binary symlinks installed?
[WARN] DD0031: does the Docker API work? prereq failed: is the Docker engine running?
[WARN] DD0032: do Docker networks overlap with host IPs? prereq failed: does the Docker API work?

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

2 participants