简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM