Docker Community Forums

Share and learn in the Docker community.

Hyper-V Powershell Module not installed


(Qbikez) #1

Expected behavior

Docker for Windows starts correctly.
docker ps return a list of running containers

Actual behavior

starting Docker fails with message:
Hyper-V Powershell Module not installed

docker ps returns:

An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.23/containers/json: open //./pipe/docker_engine: The system cannot find the file specified.

Information

  • this happens after update to Version 1.11.1-beta12 (build: 3073)
  • OS: Windows 10 x64
  • log file says:
[07:44:35.185][NamedPipeClient][Info   ] Sending Version()...
[07:44:36.453][NamedPipeClient][Info   ] Received response for Version
[07:44:36.488][NamedPipeClient][Info   ] Sending CheckInstallation()...
[07:43:58.737][BackendServer  ][Info   ] Started
[07:44:36.446][NamedPipeServer][Info   ] Version()
[07:44:36.446][NamedPipeServer][Info   ] Version done.
[07:44:36.580][NamedPipeServer][Info   ] CheckInstallation()
[07:44:36.581][HyperV         ][Info   ] Check Hyper-V Windows optional feature
[07:44:36.583][PowerShell     ][Info   ] Run script...
[07:44:41.830][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[07:44:41.831][NamedPipeServer][Info   ] CheckInstallation done.
[07:44:41.831][NamedPipeClient][Info   ] Received response for CheckInstallation
[07:44:41.838][NamedPipeClient][Info   ] Sending CheckHyperVState()...
[07:44:41.841][NamedPipeServer][Info   ] CheckHyperVState()
[07:44:41.842][HyperV         ][Info   ] Check Hyper-V Service State
[07:44:41.854][PowerShell     ][Info   ] Run script with parameters: -Check True...
[07:44:43.978][NamedPipeServer][Error  ] Unable to execute CheckHyperVState: Hyper-V Powershell Module not installed    at System.Management.Automation.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
[07:44:43.999][NamedPipeClient][Error  ] Unable to send CheckHyperVState: Hyper-V Powershell Module not installed
[07:44:43.999][Notifications  ][Error  ] Hyper-V Powershell Module not installed
  • docker service starts correctly
  • mobylinuxvm starts correctly
  • Hyper-V module is installed (I can import it in powershell)

Steps to reproduce the behavior

  1. Update to 1.11.1-beta12 (build: 3073)
  2. Start Docker for Windows

(this problem seems to be depenndant on local machine config)


(Qbikez) #2

Found it:
Hyper-V module was installed as x64 flavor (in c:\Windows\Sysnative\WindowsPowerShell\v1.0\Modules\Hyper-V). Docker service com.docker.service runs in 32bit mode, so the module has to exist in c:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\Hyper-V. Just copy the directory and voila.