简体   繁体   English

Docker 快速入门终端:退出状态 255

[英]Docker Quickstart Terminal: exit status 255

Docker version 1.12.2, build bb80604 Docker 版本 1.12.2,构建 bb80604

When I try to launch docker quickstart terminal, I am getting below error.当我尝试启动 docker quickstart 终端时,出现以下错误。 Can anyone please provide inputs to solve this problem?任何人都可以提供输入来解决这个问题吗?

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

Start interactive shell

I did this commands(from Prasad Revanaki), but is not ok yet, when I send a "docker ps" a recieve:我执行了这个命令(来自 Prasad Revanaki),但还不行,当我发送一个“docker ps”收到时:

error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.33/containers /json: open //./pipe/docker_engine: The system cannot find the file specified. I n 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 run ning.

then I run my docker quickstart terminal in administration mode and stop one image that was in virtual box running and finally now it is ok.然后我在管理模式下运行我的 docker quickstart 终端并停止运行虚拟框中的一个图像,最后现在可以了。

在此处输入图片说明 在此处输入图片说明

I have removed the default instance and re-created one with below commands, it worked for me.我已经删除了默认实例并使用以下命令重新创建了一个实例,它对我有用。

$ docker-machine rm default
$ docker-machine create --driver virtualbox default

Recently got this problem with my docker (VirtualBox + Windows 10).最近我的 docker (VirtualBox + Windows 10) 遇到了这个问题。 It was after some reconfiguration of virtual machine network (host only networks and NAT).这是在对虚拟机网络(仅主机网络和 NAT)进行一些重新配置之后。 Managed to fix it without removing the default VM.设法在不删除默认 VM 的情况下修复它。

Symptoms:症状:

command命令

docker-machine ls

returns timeout error, and command返回超时错误和命令

docker-machine ssh default 

returns error 255返回错误 255

With -D switch (eg docker-machine -D ssh default) I saw that it was trying to connect to localhost (127.0.0.1), port 22, whereas the default vm runs on 192.168.56.101 or 192.168.99.101 (I have two host only networks and one NAT in my setup).使用 -D 开关(例如 docker-machine -D ssh 默认),我看到它试图连接到本地主机(127.0.0.1),端口 22,而默认虚拟机运行在 192.168.56.101 或 192.168.99.101(我有两个在我的设置中仅托管网络和一个 NAT)。

After I've configured port 22 forwarding from 192.168.56.101 to 127.0.0.1 (also 22), it has started working fine.在我配置了从 192.168.56.101 到 127.0.0.1(也是 22)的端口 22 转发后,它开始正常工作。

虚拟机网络配置 ssh 端口从默认 vm 转发到主机的 localhost

Successful ls call:成功的 ls 调用: docker-machine ls 正确的输出

This worked for me:这对我有用:

$ docker-machine rm -y default; docker-machine create -d virtualbox default

BUT, I had to do it twice, because I had the VM running.但是,我不得不做两次,因为我运行了虚拟机。

I ran across the same issue recently and the solution was different than all the ones posted here or on github.我最近遇到了同样的问题,解决方案与此处或 github 上发布的所有解决方案不同。 In my case the reason was that port 1119 was already randomly assigned by jhi_service.exe , which is an Intel app.就我而言,原因是端口 1119 已经由jhi_service.exe随机分配,这是一个英特尔应用程序。

If you start the VM through VirtualBox you will not be able to figure that out.如果您通过 VirtualBox 启动 VM,您将无法弄清楚。 At some point I tried running the Docker Quickstart Terminal with VM down and got the error message about port 1119 already taken.在某些时候,我尝试在 VM 关闭的情况下运行 Docker 快速入门终端,并收到有关端口 1119 已被占用的错误消息。 All you need then is netstat -a -b -n -o , finding the culprit and killing it:然后你所需要的就是netstat -a -b -n -o ,找到罪魁祸首并杀死它:

  TCP    127.0.0.1:1119         0.0.0.0:0              LISTENING       3436
 [jhi_service.exe]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM