Docker Community Forums

Share and learn in the Docker community.

docker run on a windows vm

docker

(Kbcit) #1

can i running the docker on windows VM? i has a windows server 2016 VM which in based on a physical windows 10 hyper-v.
the dicker version info:
C:>docker version
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:05:22 2017
OS/Arch: windows/amd64

when i ran docker on that win2016, gpot below error:
Unable to start: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: ‘MobyLinuxVM’ failed to start.

Failed to start the virtual machine ‘MobyLinuxVM’ because one of the Hyper-V components is not running.

‘MobyLinuxVM’ failed to start. (Virtual machine ID 87864D7F-962D-4041-B0CE-FF9544CB0B51)


(Gschroettner) #2

I guess your Hyper-V is not running because your CPU does not expose its VirtualizaitionExtension to the guest OS.

Stop the VM. Then issue the following command in an elevated Powershell:

Set-VMProcessor -VMName <Target VM's Name> -ExposeVirtualizationExtensions $true

Make sure to use the correct name of your VM (as you can see it in the Hyper-V Manager). Then start the VM again.


(Ntweekly) #3

Hi There,

Please use the articles below
Windows Server 2016:

Windows Server 2016 1709