Troubleshoot Docker-On-Windows attempt to run hell

2019-02-25 19:38发布

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条回答
Melony?
2楼-- · 2019-02-25 20:00

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.

查看更多
登录 后发表回答