docker-machine: no machine name, no “default” exists

谁都会走 提交于 2019-12-03 02:03:07
Carlos Rafael Ramirez

You don't need docker-machine to manage the Hyper-V virtual machine. In fact you can't unless you configure it explicitly to do so. If you want to see your IP use the Docker for Windows GUI.

The Docker team wants you to use Docker for Windows like a regular Docker in Linux and not have to bother with virtual machine stuff.

Docker-machine is included in the same way you can install in Linux. It is for managing machines in the cloud for example, or accessing a remote Docker Engine. For example in Linux you issue your Docker commands in a natural way, but you can also have a virtual machine with Docker and manage it using docker-machine in your host. Now in Windows it works in the same way.

Regards

Docker Machine is a tool that lets you install Docker Engine on virtual hosts

Docker machine just like building docker on a Vm, so first you have to create a Vm, in your case:

docker-machine create default
Harold Castillo

Documentation docker-machine create

docker-machine create --driver virtualbox dev

or

docker-machine create -d virtualbox \
    --engine-label foo=bar \
    --engine-label spam=eggs \
    --engine-storage-driver overlay \
    --engine-insecure-registry registry.myco.com \
    foobarmachine

Two steps to find the IP address of the Hypervisor machine:

Step #1: Open Hyper-Visor Manager on Windows, then select the "MobyLinuxVM" virtual machine.

Step #2: On the bottom middle of the Hyper-V Manager there is a small tab labelled "Networking", click it.

Step #3: Take note of the MAC Address.

Step #4: Open a command prompt and write ipconfig /all to figure out the IP address for this mac address.

If anyone finds a simpler way to do this please let me know.

You need to create the machine.

docker-machine create

or

docker-machine create mymachinename
Tim Long

All other answers didn't help, until I restart the machine! It could also mean, some of the command have done or created something. And the restart has just finalised those.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!