【发布时间】:2018-01-21 19:20:45
【问题描述】:
我是 Docker 新手。我安装了 Docker Toolbox,但运行 Hello world 示例时遇到问题,如下所示:
启动 Docker 快速启动终端,结果如下:
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
Error getting IP address: ssh command error:
command : ip addr show
err : exit status 255
output : Warning: Identity file C:\Users#.lp.docker\machine\machines\default\id_rsa -p 22 "ip addr show" not accessible: No such file or directory.
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com
Start interactive shell
$ docker run hello-world
C:\Program Files\Docker Toolbox\docker.exe: error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.35/containers/create: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
See 'C:\Program Files\Docker Toolbox\docker.exe run --help'.
$ docker --version
Docker version 18.01.0-ce, build 03596f51b1
下面的命令有时会永远运行,
PS C:\Users\'#.lp> docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default virtualbox Timeout
我正在尝试上面的 Docker Toolbox,因为由于其他错误,我无法运行 Docker for Windows。
环境: Windows 10 专业版。
更新 我从 Virtual Box 中删除了所有虚拟机,并打开了 Docker QuickStart Terminal,但它一直在尝试获取 IP,如下所示:
Running pre-create checks...
Creating machine...
(default) Copying C:\Users\'#.lp\.docker\machine\cache\boot2docker.iso to C:\Users\'#.lp\.docker\machine\machines\default\boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
【问题讨论】:
-
是什么让 docker 拥有“docker-machine ls”?
-
请查看我更新的帖子。它有时会永远运行。
标签: docker docker-toolbox