After installing Docker, the Docker Engine would start
Docker installed successfully (at least appeared to install correctly), but I was unable to actually start the service. From the docker log:
[08:11:28.765][Notifications ][Error ] Failed to create VM "MobyLinuxVM": The operation failed.
An unexpected error occurred: Logon failure: the user has not been granted the requested logon type at this computer. (0x80070569).
The operation failed.
The Hyper-V Virtual Machine Management service encountered an unexpected error: Logon failure: the user has not been granted the requested logon type at this computer. (0x80070569).
- OS: Windows 10 Pro x64
Steps to reproduce the behavior
- Fresh install of Windows 10 Pro x64
- Install Hyper-V role (and reboot as needed)
- Install Docker for Windows (uncheck the start docker now checkbox)
- Start the docker service (even after a reboot it won’t start and the same error above in
Actual behavior occurs)
I finally got this working. I tried to manually create a VM in Hyper-V, and it turned out that Hyper-V was having the issue (which is what I expected, but wasn’t sure).
Anyway, I restarted
Windows Management Instrumentation service, and Hyper-V was able to create a VM, so I went back to the Docker for Windows app, and had it try to configure itself again, and it worked. I am now able to run a docker image, and it works as expected.
For some reason even a reboot of the system didn’t clear up the issue, but the restart of the
Windows Management Instrumentation service took care of the issue.
Sometimes I have to restart the
Hyper-V Virtual Machine Management service too.
Here is how I got it to work.
- Open Hyper-V Management console
- Start MobyLinuxVM manually
- Start Docker
3.a) Try “docker pull hello-world” (failed)
- In Hyper-V Management console, select “Virtual Switch Manager”
- Change “DockerNAT” from “Internal Network” to “External Network” (and “Apply”)
5.a) Try “docker pull hello-world” (failed)
- Change “DockerNAT” back to “Internal Network” (and “Apply”)
6.a) Try “docker pull hello-world” (works)