ErrorActionPreference

Expected behavior

  • Docker starts

Actual behavior

  • Docker don´t starts with error:
    [20:31:50.147][HyperV ][Info ] Creating a virtual machine named MobyLinuxVM [20:31:50.163][HyperV ][Info ] Checking for Hyper-V Windows optional feature [20:31:50.178][PowerShell ][Info ] Run script... [20:31:52.000][HyperV ][Info ] Hyper-V Windows feature is enabled [20:31:52.026][PowerShell ][Info ] Run script with parameters: -Create True -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso... [20:31:52.691][Notifications ][Error ] Error: Der ausgeführte Befehl wurde beendet, da die Einstellungsvariable "ErrorActionPreference" oder ein allgemeiner Parameter auf "Stop" festgelegt ist: Das angegebene Modul "Hyper-V" wurde nicht geladen, da in keinem Modulverzeichnis eine gültige Moduldatei gefunden wurde.. [20:31:54.686][Program ][Info ] Sending Bugsnag report 041c7204-a15b-4efe-b25a-a566bf44a88f ...

Information

  • Windows 10 Pro Version 1511
  • 64 Bit German
  • CPU AMD Phenom 9600 Quad Core
  • Ram 4 GB
  • Docker Version 1.11.0-beta8

Steps to reproduce the behavior

  1. Install Docker on Windows -> OK
  2. Start Docker for Windows -> Error

Hi Christian,

could you check if you have the Hyper-V Management Tools installed?
Thanks
Rolf

1 Like

Hi Rolf,

thanks!
The Hyper-V PowerShell Module was not installed:

I install it, but Docker don´t starts, too!

New error:
[21:41:16.675][HyperV ][Info ] Starting VM MobyLinuxVM... [21:41:31.096][Notifications ][Error ] Error: Failed to start VM "MobyLinuxVM": Fehler beim Starten von "MobyLinuxVM". Im System ist nicht genügend Speicher vorhanden, um den virtuellen Computer "MobyLinuxVM" zu starten. Fehler beim Initialisieren von Arbeitsspeicher: Nicht genügend Arbeitsspeicher (0x8007000E). Fehler beim Starten von "MobyLinuxVM" (ID des virtuellen Computers F25A9207-02B4-463C-ADA4-8B31EF9AABE0). Im System ist nicht genügend Arbeitsspeicher vorhanden, um den virtuellen Computer "MobyLinuxVM" mit einer RAM-Größe von 2048 Megabyte zu starten. (ID des virtuellen Computers: F25A9207-02B4-463C-ADA4-8B31EF9AABE0) "MobyLinuxVM": Fehler beim Initialisieren von Arbeitsspeicher: Nicht genügend Arbeitsspeicher (0x8007000E) (ID des virtuellen Computers: F25A9207-02B4-463C-ADA4-8B31EF9AABE0).

Can I reduce the Ram for the VM?

Thanks,
Chris

Hi, we currently don’t support changing the memory required by the VM (though that is planned for the future). The VM is currently configure for 2G of memory. This typically requires the host to have 4-5G of memory.
rolf

Hi Rolf,

OK, Thanks.

Chris

Hi Rolf,

Docker runs! :grinning:
I set the Ram to 1536 MB in the settings from the HyperV VM Manager:


And activate dynamic ram usage.

Now Docker for Windows works…

Chris

Great to hear. In one of the next Beta updates you will be able to control the memory setting through the in App settings panel as well