Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start Docker in Windows 10 - Hyper-V error is thrown

I get the below error while starting of docker in Windows 10. Anyone can guide me to install docker correctly?

Unable to create: The running command stopped because the preference variable 
"ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered
an error trying to access an object on computer 'XXXX' because the object was not 
found. The object might have been deleted, or you might not have permission to 
perform the task. Verify that the Virtual Machine Management service on the 
computer is running. If the service is running, try to perform the task again by 
using Run as Administrator.
at New-MobyLinuxVM, <No file>: line 242
at <ScriptBlock>, <No file>: line 362
   at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters)
   at Docker.Backend.ContainerEngine.Linux.Start(Settings settings)
   at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.<Register>b__0(Object[] parameters)
   at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

Versions

OS : Windows 10 Enterprise 
Version : 1607 
OS Build : 14393.576
Docker Version : 1.12.3 (Stable)
like image 306
sankar Avatar asked Dec 16 '16 10:12

sankar


People also ask

Can Docker run with Hyper-V enabled?

The problem. Docker Desktop on Windows 10 supports two backends: HyperV and WSL2. WSL2 in turn also uses Hyper-V — so without having Hyper-V enabled Docker Desktop fails to start and can't be used.

How do I enable Hyper-V in Windows Docker?

Enable the Hyper-V role through SettingsRight click on the Windows button and select 'Apps and Features'. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. Select Hyper-V and click OK.

Why is Docker not working Windows 10?

Operating System. If you do not run a 64-bit version of Windows Windows 10 Pro, Enterprise, or Education; 1511 November update, Build 10586 or later, you cannot run Docker for Windows. You can install Docker Toolbox if you have a 64-bit version of Windows 7 or later. Alternately, you do have the option to upgrade.

Why can't I run Docker in Windows 10 real machine?

Trying to run docker in windows 10 real machine. Its throws error says "Failed to start the virtual machine 'DockerDesktopVM' because one of the Hyper-V components is not running." Have a look in your system's services list and check whether the Hyper-V services are installed and running.

How do I run a desktop Docker on a HyperV server?

Press windows "start" button, enter "hyper-v", it will show you hyper manager, open it in hyper-v manager select "connect to server", from pop-up select "local computer" run your desktop docker it is probably working now with no crashes and exceptions.

Why can't I start dockerdesktopvm on my Virtual Machine?

Failed to start the virtual machine 'DockerDesktopVM' because one of the Hyper-V components is not running. Sorry, something went wrong. I got this issue too on a freshly set up Amazon AWS EC2 t3.medium machine. Interestingly, docker run hello-world works fine though, but I get errors when I try to run a docker-compose.

How to fix Docker Desktop Services not working on Windows?

Click on the Start button 2)Then type services 3)search for Docker Desktop Services. 4)click on that 5)on the top left click on stop service and then click on start service. error during connect: This error may indicate that the docker daemon is not running.


1 Answers

Run “MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof” from command prompt in admin mode. No need to restart machine as well after this execution, it worked for me.

like image 72
Ankur Mukherjee Avatar answered Sep 22 '22 06:09

Ankur Mukherjee