Home  >  Q&A  >  body text

Problems encountered by docker run hello-world

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?

世界只因有你世界只因有你2724 days ago928

reply all(2)I'll reply

  • 阿神

    阿神2017-05-27 17:46:11

    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 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.

    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)"
    就可以开始使用了

    reply
    0
  • 高洛峰

    高洛峰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.

    reply
    0
  • Cancelreply