Troubleshoot Docker-On-Windows attempt to run hello-world

丶灬走出姿态 提交于 2019-12-02 02:45:07

问题


I have installed docker on windows and successfully brought up the bash shell window. However, when I test my installation with docker run hello-world I get the following:

Post http://127.0.0.1:2375/v1.20/containers/create: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.. * Are you trying to connect to a TLS-enabled daemon without TLS? * Is your docker daemon up and running?

I thought at first it was because I needed to be logged in to docker hub. When I tried docker login and gave it my docker-hub account name, I got

The handle is invalid.

BTW, it did not ask me for my password. I am puzzled. Please advise.


回答1:


A little more troubleshooting helped resolve the problem. Steps taken:

  • I ran the new program Kitematic. It complained that it could not run the VM and offered a remove-and-setup-again option.
  • I chose the remove-and-setup-again option.
  • I then ran Kitematic again and it prompted for my dockerhub credentials
  • Once I successfully entered those and Kitematic seemed healthy I tried the Quickstart terminal again.
  • Running that provoked some checks from my anti-virus software which wanted to block internet activity from the VM. Once I overrode that, all went well.

In conclusion, it seems that retrying an install does change things (I do not know why) and secondly, anti-virus software can be a bother.



来源:https://stackoverflow.com/questions/32597597/troubleshoot-docker-on-windows-attempt-to-run-hello-world

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!