对Docker-On-Windows进行故障排除尝试运行hello-world [英] Troubleshoot Docker-On-Windows attempt to run hello-world

查看:640
本文介绍了对Docker-On-Windows进行故障排除尝试运行hello-world的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在windows上安装了docker,并成功地打开了bash shell窗口。但是,当我使用 docker运行hello-world 测试我的安装时,我得到以下内容:


发布 http://127.0.0.1:2375/v1.20/containers/create :拨打tcp 127.0.0.1:2375:ConnectEx tcp:由于目标机器主动拒绝连接,因此无法建立连接。
*您是否尝试连接到不带TLS的启用TLS的守护程序?
*您的Docker守护程序是否正常运行?


我以为是因为我需要登录码头中心。当我尝试 docker登录并给我我的docker-hub帐户名称,我得到


句柄无效。


BTW,它没有请求我的密码。
我很困惑请指教。

解决方案

有一些疑难解答可以解决问题。步骤:




  • 我运行了新程序Kitematic。它抱怨说它无法运行虚拟机,并提供了一个删除和设置再次选项。

  • 我选择了remove-and-setup-again选项。

  • 然后我再次运行Kitematic,它提示我的dockerhub凭据

  • 一旦我成功地输入了Kitematic似乎很健康,我尝试了 Quickstart终端再次。

  • 运行它从我的反病毒软件中引发了一些检查,希望阻止来自虚拟机的互联网活动。一旦我超越了这一切,一切顺利。



总之,似乎重试安装会改变事情(我不知道为什么),其次反病毒软件可能会麻烦。


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.

这篇关于对Docker-On-Windows进行故障排除尝试运行hello-world的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆