Microsoft Hyper-V

Creates a Boot2Docker virtual machine locally on your Windows machine using Hyper-V. See here for instructions to enable Hyper-V. You will need to use an Administrator level account to create and manage Hyper-V machines.

Note: You will need an existing virtual switch to use the driver. Hyper-V can share an external network interface (aka bridging), see this blog. If you would like to use NAT, create an internal network, and use Internet Connection Sharing.

$ docker-machine create --driver hyperv vm


  • --hyperv-boot2docker-url: The URL of the boot2docker ISO.
  • --hyperv-virtual-switch: Name of the virtual switch to use.
  • --hyperv-disk-size: Size of disk for the host in MB.
  • --hyperv-memory: Size of memory for the host in MB.
  • --hyperv-cpu-count: Number of CPUs for the host.
  • --hyperv-static-macaddress: Hyper-V network adapter’s static MAC address.
  • --hyperv-vlan-id: Hyper-V network adapter’s VLAN ID if any.

Environment variables and default values:

CLI option Environment variable Default
--hyperv-boot2docker-url HYPERV_BOOT2DOCKER_URL Latest boot2docker url
--hyperv-virtual-switch HYPERV_VIRTUAL_SWITCH first found
--hyperv-disk-size HYPERV_DISK_SIZE 20000
--hyperv-memory HYPERV_MEMORY 1024
--hyperv-cpu-count HYPERV_CPU_COUNT 1
--hyperv-static-macaddress HYPERV_STATIC_MACADDRESS undefined
--hyperv-cpu-count HYPERV_VLAN_ID undefined