我正在做docker installation guide。安装完成后,打开“Docker Quickstart Terminal”(步骤3)。我收到了这个错误:
bash --login '/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'
Unable to find any JVMs matching version "1.8.60".
Error checking TLS connection: Something went wrong running an SSH command!
command : ip addr show
err : exit status 255
output :
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
Error getting IP address: Something went wrong running an SSH command!
command : ip addr show
err : exit status 255
output :
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com
我检查了我的java版本:
➜ ~ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
我正在使用OSX 10.11.3和iTerm与Zsh。
怎么了?
编辑:
这是运行docker-machine ls
:
➜ ~ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default * virtualbox Running Unknown Something went wrong running an SSH command!
command : ip addr show
err : exit status 255
output :
答案 0 :(得分:1)
您的虚拟机实例看起来正在运行,但运行不正常且无法连接到docker。你有两个选择。
$ docker-machine rm default
$ docker-machine create --driver virtualbox default
首先尝试重新启动
$ docker-machine restart default
尝试sshing进入虚拟框
$ docker-machine ssh default
如果您可以进入虚拟机,那么您可以查看docker是否正在运行,如果没有,请尝试让它运行。