moby: Docker on Windows -> seems like I can't connect to docker online repository


BUG REPORT INFORMATION

Output of docker version:

PS C:\WINDOWS\system32> docker version
Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Wed Apr 27 00:34:20 2016
 OS/Arch:      windows/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   8b63c77
 Built:        Fri Apr 29 14:13:26 2016
 OS/Arch:      linux/amd64

Output of docker info:

PS C:\WINDOWS\system32> docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.11.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host
Kernel Version: 4.4.6-moby
Operating System: Alpine Linux v3.3
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.955 GiB
Name: docker
ID: *CENZORED (precaution)*
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/

Additional environment details (AWS, VirtualBox, physical, etc.):

  • I am Beta user of Docker on Windows (using Hyper-V)

Steps to reproduce the issue:

  1. Install docker via https://beta.docker.com/docs/ for Windows with Hyper-V functionality enabled
  2. Type in powershell with Administration privilegies docker run hello-world

Describe the results you received:

PS C:\WINDOWS\system32> docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: dial tcp: lookup index.docker.io on 10.0.75.1:53: no such host.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.

Describe the results you expected: I don’t know what to expect. I guess search and install of docker container called hello-world 😃 for first time use and testing the docker platform.

Additional information you deem important (e.g. issue happens only occasionally):

  • I tried adding to hosts file IP that I get from ping registry-1.docker.io with address cdn-registry-1.docker.io which was suggested in #3203, but it didn’t help.
  • My Hyper-V runs fine with some Windows 10 VMs running. image

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Found the right place to change DNS settings, in the Docker app windows tray icon.

All is working again.

I’ve just installed the docker for windows beta (using HyperV) and got the same issue. I’m not using custom DNS, instead I use the default given by my router.

Changing them in docker options to ‘fixed’, and using the default one provided (google’s 8.8.8.8), allowed me to start using docker.

@summerfang we’ve improved the networking in the latest betas, could you try installing beta26? https://docs.docker.com/docker-for-windows/

I had the same problem (unable to connect to the network, and download anything) with V 1.12 stable- –>i.e. I was unable to run “docker run hello-world” successfully. Once I installed V 1.12.1-beta25 “docker run hello-world” run successfully.

Hope this helps

Hmm, going through the log and looking, that it tries to resolve DNS on my home Windows Server, I tried to change DNS to google DNS 8.8.8.8 and it seems to be working. docker run hello-world gives me:

PS C:\WINDOWS\system32> docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world

4276590986f6: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:4f32210e234b4ad5cac92efacc0a3d602b02476c754f13d517e1ada048e5a8ba
Status: Downloaded newer image for hello-world:latest

Hello from Docker.
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker Hub account:
 https://hub.docker.com

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

However I would like to know how to configure my DNS server on my Windows Server to get it running with it. So here is the information:

After removing hello-world image and cleaning old log I ran docker run hello-world and it gives this log: http://pastebin.com/E5u2ASgp

Here are the commands:

  • Get-NetIPAddress:
PS C:\WINDOWS\system32> Get-NetIPAddress


IPAddress         : fe80::7460:b076:485f:1167%41
InterfaceIndex    : 41
InterfaceAlias    : vEthernet (DockerNAT)
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::cd55:f5e8:4fc:671c%14
InterfaceIndex    : 14
InterfaceAlias    : vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::556a:c489:5978:4d4e%4
InterfaceIndex    : 4
InterfaceAlias    : vEthernet (BIO-SWITCH)
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::e97a:910d:1039:a12a%15
InterfaceIndex    : 15
InterfaceAlias    : VMware Network Adapter VMnet8
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::e0d7:a7bf:2b7e:c6c2%26
InterfaceIndex    : 26
InterfaceAlias    : VMware Network Adapter VMnet1
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::5efe:10.0.75.1%45
InterfaceIndex    : 45
InterfaceAlias    : isatap.{7A798902-5AB3-4BA4-A544-8D49BB328B59}
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::5efe:192.168.253.1%22
InterfaceIndex    : 22
InterfaceAlias    : isatap.{5FA41BD9-F998-4EFF-B6D5-F4CB8E2CB589}
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::5efe:192.168.40.1%20
InterfaceIndex    : 20
InterfaceAlias    : isatap.{FC33B884-7AB7-41C2-BE06-79BF76E0D05B}
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::7d74:a6b9:c38e:334a%27
InterfaceIndex    : 27
InterfaceAlias    : Ethernet 2
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 64
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::5efe:169.254.80.80%18
InterfaceIndex    : 18
InterfaceAlias    : isatap.{534E3E60-AA15-4FB4-9170-14AF53A12CEB}
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : ::1
InterfaceIndex    : 1
InterfaceAlias    : Loopback Pseudo-Interface 1
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : WellKnown
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : fe80::5efe:192.168.88.13%23
InterfaceIndex    : 23
InterfaceAlias    : isatap.*CENZORED* (My public IP address)
AddressFamily     : IPv6
Type              : Unicast
PrefixLength      : 128
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Deprecated
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 10.0.75.1
InterfaceIndex    : 41
InterfaceAlias    : vEthernet (DockerNAT)
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.80.80
InterfaceIndex    : 14
InterfaceAlias    : vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : Manual
SuffixOrigin      : Manual
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 192.168.88.13
InterfaceIndex    : 4
InterfaceAlias    : vEthernet (BIO-SWITCH)
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 7.23:54:23
PreferredLifetime : 7.23:54:23
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 192.168.253.1
InterfaceIndex    : 15
InterfaceAlias    : VMware Network Adapter VMnet8
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 00:23:51
PreferredLifetime : 00:23:51
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 192.168.40.1
InterfaceIndex    : 26
InterfaceAlias    : VMware Network Adapter VMnet1
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 24
PrefixOrigin      : Dhcp
SuffixOrigin      : Dhcp
AddressState      : Preferred
ValidLifetime     : 00:23:59
PreferredLifetime : 00:23:59
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 169.254.51.74
InterfaceIndex    : 27
InterfaceAlias    : Ethernet 2
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 16
PrefixOrigin      : WellKnown
SuffixOrigin      : Link
AddressState      : Tentative
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore

IPAddress         : 127.0.0.1
InterfaceIndex    : 1
InterfaceAlias    : Loopback Pseudo-Interface 1
AddressFamily     : IPv4
Type              : Unicast
PrefixLength      : 8
PrefixOrigin      : WellKnown
SuffixOrigin      : WellKnown
AddressState      : Preferred
ValidLifetime     : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource      : False
PolicyStore       : ActiveStore
  • Get-NetNat:
PS C:\WINDOWS\system32> get-netnat


Name                             : DockerNAT
ExternalIPInterfaceAddressPrefix :
InternalIPInterfaceAddressPrefix : 10.0.75.0/24
IcmpQueryTimeout                 : 30
TcpEstablishedConnectionTimeout  : 1800
TcpTransientConnectionTimeout    : 120
TcpFilteringBehavior             : AddressDependentFiltering
UdpFilteringBehavior             : AddressDependentFiltering
UdpIdleSessionTimeout            : 120
UdpInboundRefresh                : False
Store                            : Local
Active                           : True
  • Get-VMNetworkAdapter MobyLinuxVM:
PS C:\WINDOWS\system32> Get-VMNetworkAdapter MobyLinuxVM

Name            IsManagementOs VMName      SwitchName MacAddress   Status                      IPAddresses
----            -------------- ------      ---------- ----------   ------                      -----------
Network Adapter False          MobyLinuxVM DockerNAT  00155D580D03 {Degraded, ProtocolVersion} {10.0.75.2}
  • Also my DNS servers are these in this order:
    192.168.88.2 (My server),
    10.10.10.10 (Provider’s servers),
    8.8.8.8 (Google DNS)