Docker for Windows not working

2019-01-30 02:22发布

I've installed Docker toolbox now and I get the error for everything:

Get http://127.0.0.1:2375/v1.20/version: dial tcp 127.0.0.1:2375: ConnectExtcp: 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?

docker version output:

Client:
 Version:      1.8.1
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   d12ea79
 Built:        Thu Aug 13 02:49:29 UTC 2015
 OS/Arch:      windows/amd64
Get http://127.0.0.1:2375/v1.20/version: 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?

But the VM is running under VirtualBox. I have searched everywhere but can't find a solution.

UPDATE1: I'm using Windows 8.1 and also tried to start through Kinematic also.

UPDATE2: Everything worked like charm when I tried Virtualbox Test Build 5.0.3 or later. You can download here: https://www.virtualbox.org/wiki/Testbuilds

标签: docker
17条回答
乱世女痞
2楼-- · 2019-01-30 02:46

It sounds like the problem with virtual box, In my case, I have performed below steps to resolve the issue

  • Stop Docker machine by 'docker-machine stop'
  • Open Network and sharing Center in Windows OS
  • Click on Change Adapter settings
  • Disable the VirtualBox-Host Only Network
  • Start Docker machine by 'docker-machine start'
查看更多
家丑人穷心不美
3楼-- · 2019-01-30 02:47

With Docker 1.8.1d had the same problem, having uninstalled 1.8.1c. Eventually fixed problem by installing latest Virtual Box (5.0.18), rebooting when prompted and starting Kitematic. Kitematic fails at first and offers option to remove and re-install the VM which I did. After that my QuickStart Terminal was OK.

查看更多
放荡不羁爱自由
4楼-- · 2019-01-30 02:49

I encountered exactly the same error when I run docker images after a system reboot. I used docker version 1.10 on Windows 7 64 bits with virtualbox 5.0.10 and mintty(the terminal come with Git for Windows)

Executing docker-machine ls showed me the virtual machine is in Timeout state. $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default virtualbox Timeout So I restarted the virtual machine $ docker-machine restart default Then list the status again told me the cert is bound to an incorrect address: $ docker-machine ls Unable to query docker version: Get https://192.168.56.101:2376/v1.15/version: x509: certificate is valid for 192.168.99.101, not 192.168.56.101 Then I regenerate the cert $ docker-machine regenerate-certs default and finally $ eval $(docker-machine env default --shell=bash) Then docker is working again!

查看更多
该账号已被封号
5楼-- · 2019-01-30 02:49

My issue was "...error getting IP address" Thanks to all the people here who have contributed their solutions which I read through and performed these steps:

  1. Close Docker

  2. Open VirtualBox Manager

  3. Delete default VM

  4. Start Kitematic first (I think this is important)

  5. Start Docker

查看更多
相关推荐>>
6楼-- · 2019-01-30 02:50

if you are using docker for windows(beta) follow this steps:

  • Disable the "DockerNAT" network adapter
  • Run the "Reset to factory defaults" via the taskbar / docker / settings / Reset to factory defaults"
查看更多
登录 后发表回答