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:
- Install docker via https://beta.docker.com/docs/ for Windows with Hyper-V functionality enabled
- 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 addresscdn-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.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (5 by maintainers)
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: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/E5u2ASgpHere are the commands:
Get-NetIPAddress
:Get-NetNat
:Get-VMNetworkAdapter MobyLinuxVM
:192.168.88.2
(My server),10.10.10.10
(Provider’s servers),8.8.8.8
(Google DNS)