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

Failed to create or configure Hyper-V VM: Sequence contains no elements #9593

Open deadinternet2027 opened this issue 3 years ago • 2 comments

Description

Failed to create or configure Hyper-V VM: Sequence contains no elements #9593

https://i.imgur.com/3RJWbsj.png https://i.imgur.com/VqM7MbL.png

Reproduce

Running docker.exe to get the deamon running

Expected behavior

Should run the deamon

docker version

C:\Users\DonElladio\codesherpa>docker version
error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.
Client:
 Cloud integration: v1.0.31
 Version:           23.0.5
 API version:       1.42
 Go version:        go1.19.8
 Git commit:        bc4487a
 Built:             Wed Apr 26 16:20:14 2023
 OS/Arch:           windows/amd64
 Context:           default

docker info

C:\Users\DonElladio\codesherpa>docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.10.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.17.3
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.19
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.4
    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
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scan.exe
  scout: Command line tool for Docker Scout (Docker Inc.)
    Version:  v0.10.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
ERROR: error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: The system cannot find the file specified.
errors pretty printing info

Diagnostics ID

13993256

Additional Info

No response

deadinternet2027 avatar Jun 15 '23 06:06 deadinternet2027

what is your Docker Desktop version?

lorenrh avatar Jun 20 '23 17:06 lorenrh

Hi,

I was having a similar issue with my docker, and searched everywhere for a solution. I first went to Hyper-V manger (can be found by searching in the task bar) and made sure "DockerDesktopVM" was running by right clicking and then pressing connect. Then afterwards, I still was having trouble connecting, but I knew it was no longer a Hyper-V issue. I restarted my machine and did the same step and I was still getting that error. Then what made it work was I went into service.msc, stopped both "Docker Desktop Service" and "Docker Engine". afterwards, I started Docker Desktop, it threw an error saying docker engine was not running, went back to the services.msc window, started both Docker Engine and Docker Desktop Service and it finally started to work.

uiv11568 avatar Oct 04 '23 03:10 uiv11568