Unable to run the docker commands on windows 10 Enterprise in the azure cloud

Expected behavior

unable to run basic docker commands on windows 10

Actual behavior

when running docker images

i get error as follows :

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

Information

log file contain

‘MobyLinuxVM’ failed to start. (Virtual machine ID 9173B239-4ADB-4FBA-A22B-299EEEBAC090)

The Virtual Machine Management Service failed to start the virtual machine ‘MobyLinuxVM’ because one of the Hyper-V components is not running (Virtual machine ID 9173B239-4ADB-4FBA-A22B-299EEEBAC090).
[10:11:39.433][NamedPipeClient][Error ] Unable to sending Start: Failed to start VM “MobyLinuxVM”: ‘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 9173B239-4ADB-4FBA-A22B-299EEEBAC090)

The Virtual Machine Management Service failed to start the virtual machine ‘MobyLinuxVM’ because one of the Hyper-V components is not running (Virtual machine ID 9173B239-4ADB-4FBA-A22B-299EEEBAC090).
[10:11:39.445][Notifications ][Error ] Error: Failed to start VM “MobyLinuxVM”: ‘MobyLinuxVM’ failed to start.

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

Steps to reproduce the behavior

  1. install docker for windows beta on windows 10 enterprise in azure cloud
  2. unable to run basic docker commands

This is not expected to work because it would require nested virtualization (eg. Hyper-V VM running on top of the Azure VM).

IMO nesting should be possible. https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/user_guide/nesting but the VM may need some special adjustments. … OR Azure doesn’t support it. … So it’s probably a question for MS support.

Azure does not currently support AFAIK.

I might be wrong here, but “Docker for Mac/Windows” are developer’s workstation tools, not meant for server setups. For this kind of situation you should use docker-machine:

I do not know exactly what you are trying to do, but as a general rule for running images from Docker Hub you need to provision a Linux VM from the cloud provider you pick (docker-machine does it for you) - Azure included.

In the other hand if your developer workstation is this windows enterprise on Azure cloud, I’d recommend you also provision a Linux VM separately, since apparently Docker for Windows won’t work. This is not a big deal. A very interesting option is Rackspace Carina, that provides you a Docker Engine endpoint directly (no need to deal with a VM at all). In that case you can use docker-machine to provision it (with Rackspace Driver) or you can download Carina CLI and DVM from rackspace (very simple and fast-food tools) to do the same. Rackspace Carina is still in beta and, therefore, free. It goes the CaaS model that is, in my opinion, a better choice. You will be up and running within minutes.

Rackspace driver for docker-machine:

Getting started with Carina (Carina CLI and DVM)
https://getcarina.com/docs/getting-started/getting-started-on-carina/

Now, an entirely different subject are Windows Server Containers, from Windows Server 2016. These are totally based on MS technology (no Linux at all), where you can run MS stuff like MSSQL Server and IIS natively.

https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/manage_docker