简体   繁体   中英

Docker Quickstart Terminal: exit status 255

Docker version 1.12.2, build bb80604

When I try to launch docker quickstart terminal, I am getting below error. 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:

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.

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

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). It was after some reconfiguration of virtual machine network (host only networks and NAT). Managed to fix it without removing the default VM.

Symptoms:

command

docker-machine ls

returns timeout error, and command

docker-machine ssh default 

returns error 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).

After I've configured port 22 forwarding from 192.168.56.101 to 127.0.0.1 (also 22), it has started working fine.

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

Successful ls call: 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. In my case the reason was that port 1119 was already randomly assigned by jhi_service.exe , which is an Intel app.

If you start the VM through VirtualBox you will not be able to figure that out. At some point I tried running the Docker Quickstart Terminal with VM down and got the error message about port 1119 already taken. All you need then is netstat -a -b -n -o , finding the culprit and killing it:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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