After installing Docker Toolbox, after running Docker Quickstart Terminal, I ran the hello world test and this happened. Dear masters, what does this mean that the connection is refused? What should I do?
阿神2017-05-27 17:46:11
Come, let’s go back to the basics. The hint is the meaning of the expression:
1.tls is turned on, is it because your daemon process is not turned on?
2. Is your daemon down? Brother.
1. Use docker-machine ls to check whether the Linux virtual host is turned on.
2. Use docker-machine ssh default
to enter the host machine, and then use docker ps
to check.
If docker ps hangs, it means your docker daemon hangs. Use dockerd to start the daemon
1. There should be no daemon.json configuration
2.Certificate configuration
3. If it hangs, you can enter the virtual host and restart dockerd
. At this time, an error will usually be reported. Just complete the repair according to the error message.
What if none of the above methods work?
Then the last life-saving straw
$docker-machine create --driver .... new
Create a new host
$eval "$(docker-machine env new)"
就可以开始使用了
高洛峰2017-05-27 17:46:11
Docker service is about to start. Anyway, I need systemctl start docker in Linux to start the docker service.