docker-machine:没有机器名称,没有“默认"存在 [英] docker-machine: no machine name, no "default" exists
问题描述
我下载并安装了适用于Windows 1.12.1的Docker,后者又安装了docker-machine和docker-compose.我没有安装"Docker Toolbox",因为它与已安装的重复,并且我的系统符合要求.
I downloaded and installed Docker for Windows 1.12.1 which in turn installed the docker-machine and docker-compose. I did not install "Docker Toolbox" since its a duplicate of what was installed and my system meets the requirements.
除了docker-machine之外,其他所有东西似乎都可以正常运行,我正在运行一个教程,当我运行各种docker-machine命令(例如"ip"或"env")时,会收到以下消息.
Everything seems to work fine except for docker-machine, I'm running through a tutorial and when I run various docker-machine commands like "ip" or "env" I get the following message.
Error: No machine name(s) specified and no "default" machine exists.
因此,当我执行"docker-machine ls"时,即使我确实安装了Hyper-V docker计算机并且docker命令正常工作,列表中也没有.
So when I do a "docker-machine ls" there is nothing in the list even though I do have a Hyper-V docker machine installed and docker commands work fine.
C:\tmp>docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
C:\tmp>
我在这里错过了什么吗?我是否错过了文档中的某些内容?如果可以的话,有人可以指出正确的方向来解决这个问题吗?
Am I missing something here? Did I miss something in the documentation? If so can someone please point me in the right direction to fix this?
感谢您的帮助,
吉姆
推荐答案
Docker Machine是一个工具,可让您在虚拟主机上安装Docker Engine
Docker Machine is a tool that lets you install Docker Engine on virtual hosts
Docker机器就像在Vm上构建docker一样,因此首先必须创建一个Vm,以您的情况为例:
Docker machine just like building docker on a Vm, so first you have to create a Vm, in your case:
docker-machine create default
这篇关于docker-machine:没有机器名称,没有“默认"存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!