# docker run on a windows vm

**URL:** <https://forums.docker.com/t/docker-run-on-a-windows-vm/45238>\
**Category:** Windows Server 2016\
**Tags:** docker\
**Created:** [January 26, 2018, 2:50pm UTC](https://forums.docker.com/t/docker-run-on-a-windows-vm/45238 "2018-01-26T14:50:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbcit](https://avatars.discourse-cdn.com/v4/letter/k/a88e57/32.png) [@kbcit](https://forums.docker.com/u/kbcit)\
**Post date:** [January 26, 2018, 2:50pm UTC](https://forums.docker.com/t/docker-run-on-a-windows-vm/45238/1 "2018-01-26T14:50:28Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![gschroettner](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/gschroettner/32/17672_2.png) [@gschroettner](https://forums.docker.com/u/gschroettner)\
**Post date:** [January 29, 2018, 8:34pm UTC](https://forums.docker.com/t/docker-run-on-a-windows-vm/45238/2 "2018-01-29T20:34:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ntweekly](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@ntweekly](https://forums.docker.com/u/ntweekly)\
**Post date:** [March 4, 2018, 8:26am UTC](https://forums.docker.com/t/docker-run-on-a-windows-vm/45238/3 "2018-03-04T08:26:10Z")

</div>

Hi There,

Please use the articles below  
Windows Server 2016:

> **[How to Install Windows Containers on Windows Server 2016 - Deploy Windows...](http://www.deploycontainers.com/2017/08/11/how-to-install-windows-containers-on-windows-server-2016/)**
>
> In this blog post, I’ll show you how I Install Windows Containers on Windows Server Core 2016 and Server with GUI. Windows Containers allows us to run \\ deploy Windows Containers Images using the Docker management engine for Containers. Currently,...

Windows Server 2016 1709

> **[Install Docker on Windows Server 2016 Version 1709 - Deploy Windows Containers](http://www.deploycontainers.com/2017/10/30/install-docker-windows-server-2016-version-1709/)**
>
> With the release of Windows Server 2016 version 1709, I’ll show you how to deploy a Windows Containers Host on it. In this blog post, I’ll show you how to Install Docker 17.06 and Docker Enterprise Edition Preview build which support many great...
