Docker说:由于目标机器主动拒绝连接,因此无法build立连接

我每天都在使用docker,但是今天发生了一个问题,没有任何改变。 我打开dockerterminal,试图启动我的一个容器。 但它给了这个错误:“没有连接,因为目标机器积极拒绝它”我正在使用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. 

“主动拒绝”意味着主机在尝试连接时发送了重置而不是确认。 因此在你的代码中没有问题。 要么有阻止连接的防火墙,要么托pipe服务的进程不在该端口上侦听。 这可能是因为它根本没有运行,或者是因为它正在监听不同的端口。

一旦启动托pipe服务的进程,请尝试netstat -anb (需要pipe理员权限)以validation它是否正在运行并正在侦听预期的端口。

我也面临同样的问题,甚至试图通过停止,然后retarting默认的机器。

解决scheme:最后,我重新启动系统,然后打开新的Docker快速入门terminal。 之后,我再次运行“docker run hello-world”,然后连接并从library / hello-world中拉出hello-world。