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?
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.
Solution
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
Finally, we summarize the reasons why dockerd hangs up in the host machine in Windows mode.
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.
Question
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.
Solution
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 usedocker ps
to check.If docker ps hangs, it means your docker daemon hangs. Use dockerd to start the daemon
Finally, we summarize the reasons why dockerd hangs up in the host machine in Windows mode.
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
Create a new host
Docker service is about to start. Anyway, I need systemctl start docker in Linux to start the docker service.