Docker Error Hyper-V, MobyLinuxVM, ErrorActionPreference

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

Unable to create: The running command stopped because the preference variable “ErrorActionPreference”
at New-MobyLinuxVM, : line 191

Reference Image

There is a error i was facing when i install Docker Windows.
I’ve tried some solution on the google but the problem still remains.
I have checked the MobyLinuxVM’s status during the startup of the docker and found the MobyLinuxVM is never created.

What causing New-MobyLinuxVM Error?

This error is coming because if you already using hyper-v or docker windows was installed in past and you uninstalled.


Here is a fix which really works for many users, hope this will help you as well…

  1. Press Window Key + R to start Run dialog box.
  2. Enter this command
    MOFCOMP SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
  3. And its working fine now.In some cases you may need to reboot your system.

You May Also Like