Docker说:无法建立连接,因为目标计算机主动拒绝 [英] Docker says: No connection could be made because the target machine actively refused it
本文介绍了Docker说:无法建立连接,因为目标计算机主动拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我每天都在使用docker,但是今天出现了问题,没有任何改变。我打开码头,试图启动我的一个集装箱。但是它给出了这个错误:"无法建立连接,因为目标计算机主动拒绝"我正在使用Windows 10。
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
__/
\____\_______/
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
admin@samsung MINGW64 ~
$ docker ps
An error occurred trying to connect: Get http://127.0.0.1:2375/v1.22/containers/json: dial tcp 127.0.0.1:2375: connectex: No connection could be made because the target machine actively refused it.
admin@samsung MINGW64 ~
$ docker version
Client:
Version: 1.10.2
API version: 1.22
Go version: go1.5.3
Git commit: c3959b1
Built: Mon Feb 22 22:37:33 2016
OS/Arch: windows/amd64
An error occurred trying to connect: Get http://127.0.0.1:2375/v1.22/version: dial tcp 127.0.0.1:2375: connectex: No connection could be made because the target machine actively refused it.
推荐答案
- 右键单击您的PC
- 属性
- 高级系统设置
- 环境变量
- 添加新变量:
DOCKER_HOST
取值:tcp://127.0.0.1:2375 - 运行Docker Desktop
- 右下角右键单击Docker-Desktop
- 设置 启用以下选项:"启用显示后台进程 tcp://本地主机:2375,不带TLS"
这篇关于Docker说:无法建立连接,因为目标计算机主动拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文