I cannot run Docker in Windows 11

I had Windows 10 and Docker. It worked good.
Then I have upgraded Windows 10-> Windows 11.
All is ok, but Docker Desktop displays: “Docker engine starting” and it did not complete.
After analyze I have detected that the service is not running

Hyper-V Host Compute Service Error: 0x800700005 Access denied
I think it is the real reason.

I understand that this is not Docker specific but I did not find any solutions.
May be somebody here had a simple problem and knows how to solve it.
Thank you!

What is your Docker Desktop version? I upgraded my Windows 10 to Windows 11 without any problem but I use the WSL2 backend for Linux containers. What do you use Docker for? Windows containers or Linux containers?

I have uninstalled\installed the Docker, now I have the latest version.
Usually I use containers for Linux and sometimes for windows. Just now I try to run Linux containers.
Also, I have tried to switch Docker to Windows etc, but it does not work because of Hyper-V service.

I run Docker Desktop as Administrator

docker run hello-world
docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create”: open //./pipe/docker_engine: The system cannot find the file specified.

What file it cannot find?

It probably refers to the pipe: open //./pipe/docker_engine:. It can mean the windows service for Docker is not running. But I am not sure

I try yo reset the Docker setting in Docker Desktop:

Docker.Core.HttpBadResponseException:
Sequence contains no elements
   at Docker.Core.Logging.HttpClientExceptionInterceptor.<InterceptResponseAsync>d__0.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\Logging\HttpClientExceptionInterceptor.cs:line 17
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Docker.Core.IPC.Client.<SendAsync>d__5.MoveNext() in C:\workspaces\4.3.x\src\github.com\docker\pinata\win\src\Docker.Core\IPC\Client.cs:line 42


I cannot attach full stack because site restricts my possibilities

I assume it was because you insrted code containing URLs, without using the code block button </> so the URLs were converted to clickable links. I fixed your post.

I know this is not the kind of solution you are looking for, but have you tried to reinstall Docker? The success of the upgrade may depend on the original configuration.

Yes, I have Uninstalled the Docker, then installed it again, but the same result:
Windows could not start Hyper-V Host Computer Service on local computer:
Error: 0x80070005 Access is denied.
I think it is the reason why Docker cannot start

Did you solve it? After reading an other issue I thought I mention deleting every folder related to Docker between uninstalling and reinstalling Docker.

  • C:/Users/<yourusername>/.docker
  • C:/ProgramData/Docker
  • C:/ProgramData/DockerDesktop

These are the folders I found but Microsoft has documentation about uninstalling Docker and cleaning up data

I have made as you wrote and uninstall and install again the Docker.
Now:

docker --version
Docker version 20.10.11, build dea9396

docker run hello-world
docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create”: open //./pipe/docker_engine: The system cannot find the file specified.
See ‘docker run --help’.

What can I fix yet?