Can't pull image on my ubuntu 13.04 #1470

Closed
dgoujard opened this Issue Aug 9, 2013 · 45 comments

Comments

Projects
None yet
@dgoujard

dgoujard commented Aug 9, 2013

Hi,

I'm using last master and current v0.5.2 version on ubuntu 13.04 (clean install) with 3.8.0-27-generic kernel.

When i pull image from repository i haven't any output and no errors :

root@ks3354934:~# docker pull ubuntu
Pulling repository ubuntu
root@ks3354934:~#

And with hello world command :

root@ks3354934:~# docker run -i -t ubuntu /bin/bash                             
Pulling repository ubuntu
2013/08/09 13:36:51 Error: No such image: ubuntu
root@ks3354934:~#

It's not an network issue because curl https://index.docker.io/v1/repositories/ubuntu/images return json. I tested on another ubuntu it's work. I would like to know why isn't working on this server?

Thank you !

@vieux

This comment has been minimized.

Show comment
Hide comment
@vieux

vieux Aug 9, 2013

Collaborator

Maybe you have ufw enabled ?

Collaborator

vieux commented Aug 9, 2013

Maybe you have ufw enabled ?

@dgoujard

This comment has been minimized.

Show comment
Hide comment
@dgoujard

dgoujard Aug 9, 2013

@vieux
No :(

root@ks3354934:~# ufw status verbose
État : inactif

dgoujard commented Aug 9, 2013

@vieux
No :(

root@ks3354934:~# ufw status verbose
État : inactif
@vieux

This comment has been minimized.

Show comment
Hide comment
@vieux

vieux Aug 9, 2013

Collaborator

If you launch the daemon in debug mode, do you see anything ?

Collaborator

vieux commented Aug 9, 2013

If you launch the daemon in debug mode, do you see anything ?

@dgoujard

This comment has been minimized.

Show comment
Hide comment
@dgoujard

dgoujard Aug 9, 2013

No errors. Logs for base pull request:

2013/08/09 15:00:47 Listening for HTTP on /var/run/docker.sock (unix)
[debug] api.go:920 Registering GET, /containers/{name:.*}/changes
[debug] api.go:920 Registering GET, /images/search
[debug] api.go:920 Registering GET, /containers/json
[debug] api.go:920 Registering GET, /containers/{name:.*}/export
[debug] api.go:920 Registering GET, /containers/{name:.*}/json
[debug] api.go:920 Registering GET, /info
[debug] api.go:920 Registering GET, /version
[debug] api.go:920 Registering GET, /images/viz
[debug] api.go:920 Registering GET, /containers/ps
[debug] api.go:920 Registering GET, /containers/{name:.*}/top
[debug] api.go:920 Registering GET, /events
[debug] api.go:920 Registering GET, /images/json
[debug] api.go:920 Registering GET, /images/{name:.*}/history
[debug] api.go:920 Registering GET, /images/{name:.*}/json
[debug] api.go:920 Registering POST, /images/{name:.*}/insert
[debug] api.go:920 Registering POST, /containers/{name:.*}/restart
[debug] api.go:920 Registering POST, /images/getCache
[debug] api.go:920 Registering POST, /containers/create
[debug] api.go:920 Registering POST, /containers/{name:.*}/kill
[debug] api.go:920 Registering POST, /containers/{name:.*}/start
[debug] api.go:920 Registering POST, /containers/{name:.*}/stop
[debug] api.go:920 Registering POST, /containers/{name:.*}/resize
[debug] api.go:920 Registering POST, /auth
[debug] api.go:920 Registering POST, /build
[debug] api.go:920 Registering POST, /containers/{name:.*}/wait
[debug] api.go:920 Registering POST, /containers/{name:.*}/attach
[debug] api.go:920 Registering POST, /commit
[debug] api.go:920 Registering POST, /images/create
[debug] api.go:920 Registering POST, /images/{name:.*}/push
[debug] api.go:920 Registering POST, /images/{name:.*}/tag
[debug] api.go:920 Registering DELETE, /containers/{name:.*}
[debug] api.go:920 Registering DELETE, /images/{name:.*}
[debug] api.go:920 Registering OPTIONS, 
[debug] api.go:926 Calling POST /images/create from @
2013/08/09 15:00:56 POST /v1.4/images/create?fromImage=base&tag=

dgoujard commented Aug 9, 2013

No errors. Logs for base pull request:

2013/08/09 15:00:47 Listening for HTTP on /var/run/docker.sock (unix)
[debug] api.go:920 Registering GET, /containers/{name:.*}/changes
[debug] api.go:920 Registering GET, /images/search
[debug] api.go:920 Registering GET, /containers/json
[debug] api.go:920 Registering GET, /containers/{name:.*}/export
[debug] api.go:920 Registering GET, /containers/{name:.*}/json
[debug] api.go:920 Registering GET, /info
[debug] api.go:920 Registering GET, /version
[debug] api.go:920 Registering GET, /images/viz
[debug] api.go:920 Registering GET, /containers/ps
[debug] api.go:920 Registering GET, /containers/{name:.*}/top
[debug] api.go:920 Registering GET, /events
[debug] api.go:920 Registering GET, /images/json
[debug] api.go:920 Registering GET, /images/{name:.*}/history
[debug] api.go:920 Registering GET, /images/{name:.*}/json
[debug] api.go:920 Registering POST, /images/{name:.*}/insert
[debug] api.go:920 Registering POST, /containers/{name:.*}/restart
[debug] api.go:920 Registering POST, /images/getCache
[debug] api.go:920 Registering POST, /containers/create
[debug] api.go:920 Registering POST, /containers/{name:.*}/kill
[debug] api.go:920 Registering POST, /containers/{name:.*}/start
[debug] api.go:920 Registering POST, /containers/{name:.*}/stop
[debug] api.go:920 Registering POST, /containers/{name:.*}/resize
[debug] api.go:920 Registering POST, /auth
[debug] api.go:920 Registering POST, /build
[debug] api.go:920 Registering POST, /containers/{name:.*}/wait
[debug] api.go:920 Registering POST, /containers/{name:.*}/attach
[debug] api.go:920 Registering POST, /commit
[debug] api.go:920 Registering POST, /images/create
[debug] api.go:920 Registering POST, /images/{name:.*}/push
[debug] api.go:920 Registering POST, /images/{name:.*}/tag
[debug] api.go:920 Registering DELETE, /containers/{name:.*}
[debug] api.go:920 Registering DELETE, /images/{name:.*}
[debug] api.go:920 Registering OPTIONS, 
[debug] api.go:926 Calling POST /images/create from @
2013/08/09 15:00:56 POST /v1.4/images/create?fromImage=base&tag=
@vieux

This comment has been minimized.

Show comment
Hide comment
@vieux

vieux Aug 9, 2013

Collaborator

And docker search ubuntu ?

Collaborator

vieux commented Aug 9, 2013

And docker search ubuntu ?

@dgoujard

This comment has been minimized.

Show comment
Hide comment
@dgoujard

dgoujard Aug 9, 2013

root@ks3354934:~# docker search ubuntu
2013/08/09 15:05:35 Error: Get https://index.docker.io/v1/search?q=ubuntu: lookup index.docker.io.: no DNS servers

Sound like dns issue. i check my setup

dgoujard commented Aug 9, 2013

root@ks3354934:~# docker search ubuntu
2013/08/09 15:05:35 Error: Get https://index.docker.io/v1/search?q=ubuntu: lookup index.docker.io.: no DNS servers

Sound like dns issue. i check my setup

@adrien-f

This comment has been minimized.

Show comment
Hide comment
@adrien-f

adrien-f Aug 9, 2013

I had the same issue when I installed docker on my 13.04 a few days ago.

Try to add nameserver 8.8.8.8 and nameserver 8.8.4.4 to your /etc/resolv.conf, this fixed it for me.

adrien-f commented Aug 9, 2013

I had the same issue when I installed docker on my 13.04 a few days ago.

Try to add nameserver 8.8.8.8 and nameserver 8.8.4.4 to your /etc/resolv.conf, this fixed it for me.

@dgoujard

This comment has been minimized.

Show comment
Hide comment
@dgoujard

dgoujard Aug 9, 2013

Strange:

root@ks3354934:~# nslookup index.docker.io
Server:     127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
index.docker.io canonical name = edge-docker.dotcloud.com.
Name:   edge-docker.dotcloud.com
Address: 54.224.119.89
Name:   edge-docker.dotcloud.com
Address: 54.234.135.251
root@ks3354934:~# docker search ubuntu
2013/08/09 15:12:22 Error: Get https://index.docker.io/v1/search?q=ubuntu: lookup index.docker.io.: no DNS servers
root@ks3354934:~# curl https://index.docker.io/v1/search?q=ubuntu: 
{"query": "ubuntu:", "num_results": 3, "results": [{"name": "jtgeibel/ubuntu", "description": "ubuntu:precise with the precise-security repo enabled"}, {"name": "jtgeibel/ruby", "description": "Based on ubuntu:precise with all of the latest MRI patch levels of 2.0.0, 1.9.3, and 1.8.7."}, {"name": "ipmb/salt-minion", "description": "salt-minion on ubuntu:precise"}]}

My hack to get working docker on my kismufi server -> add on /etc/hosts

54.224.119.89   index.docker.io
54.224.119.89   registry-1.docker.io

I have no idea why dns resolution doesn't work with docker on my server (nsloookup is ok)

dgoujard commented Aug 9, 2013

Strange:

root@ks3354934:~# nslookup index.docker.io
Server:     127.0.0.1
Address:    127.0.0.1#53

Non-authoritative answer:
index.docker.io canonical name = edge-docker.dotcloud.com.
Name:   edge-docker.dotcloud.com
Address: 54.224.119.89
Name:   edge-docker.dotcloud.com
Address: 54.234.135.251
root@ks3354934:~# docker search ubuntu
2013/08/09 15:12:22 Error: Get https://index.docker.io/v1/search?q=ubuntu: lookup index.docker.io.: no DNS servers
root@ks3354934:~# curl https://index.docker.io/v1/search?q=ubuntu: 
{"query": "ubuntu:", "num_results": 3, "results": [{"name": "jtgeibel/ubuntu", "description": "ubuntu:precise with the precise-security repo enabled"}, {"name": "jtgeibel/ruby", "description": "Based on ubuntu:precise with all of the latest MRI patch levels of 2.0.0, 1.9.3, and 1.8.7."}, {"name": "ipmb/salt-minion", "description": "salt-minion on ubuntu:precise"}]}

My hack to get working docker on my kismufi server -> add on /etc/hosts

54.224.119.89   index.docker.io
54.224.119.89   registry-1.docker.io

I have no idea why dns resolution doesn't work with docker on my server (nsloookup is ok)

@dgoujard

This comment has been minimized.

Show comment
Hide comment
@dgoujard

dgoujard Aug 9, 2013

Solved ! it's ovh ubuntu 13.10 image , if i remove bind9 and resolvconf (aptitude remove bind9 resolvconf) and create /etc/resolv.conf it's works

dgoujard commented Aug 9, 2013

Solved ! it's ovh ubuntu 13.10 image , if i remove bind9 and resolvconf (aptitude remove bind9 resolvconf) and create /etc/resolv.conf it's works

@dgoujard dgoujard closed this Aug 9, 2013

@kthakore

This comment has been minimized.

Show comment
Hide comment
@kthakore

kthakore Nov 26, 2013

What if I want to use bind9 with docker? I have only one dev machine and can't turn of the dns.

What if I want to use bind9 with docker? I have only one dev machine and can't turn of the dns.

@jpetazzo

This comment has been minimized.

Show comment
Hide comment
@jpetazzo

jpetazzo Nov 26, 2013

Contributor

@kthakore: try to add nameserver 127.0.0.1 to /etc/resolv.conf, that might help.

Contributor

jpetazzo commented Nov 26, 2013

@kthakore: try to add nameserver 127.0.0.1 to /etc/resolv.conf, that might help.

@kthakore

This comment has been minimized.

Show comment
Hide comment
@kthakore

kthakore Nov 27, 2013

No luck

On Tue, Nov 26, 2013 at 5:52 PM, Jérôme Petazzoni
notifications@github.comwrote:

@kthakore https://github.com/kthakore: try to add nameserver 127.0.0.1to
/etc/resolv.conf, that might help.


Reply to this email directly or view it on GitHubhttps://github.com/dotcloud/docker/issues/1470#issuecomment-29343267
.

No luck

On Tue, Nov 26, 2013 at 5:52 PM, Jérôme Petazzoni
notifications@github.comwrote:

@kthakore https://github.com/kthakore: try to add nameserver 127.0.0.1to
/etc/resolv.conf, that might help.


Reply to this email directly or view it on GitHubhttps://github.com/dotcloud/docker/issues/1470#issuecomment-29343267
.

@jpetazzo

This comment has been minimized.

Show comment
Hide comment
@jpetazzo

jpetazzo Dec 2, 2013

Contributor

Ah!
Well, since this issue started with something about Docker 0.5.2, and you are (obviously) not running that version, I think we should move the conversation elsewhere...
Do you think you could ask your question again, either on the docker-user mailing list, or maybe on stack overflow?
You will need to tell exactly how your docker host is configured (bind9, right?), the content of /etc/resolv.conf, the exact problem that you see...
Sorry that I couldn't find a better solution; we will need to get some outside help!

Contributor

jpetazzo commented Dec 2, 2013

Ah!
Well, since this issue started with something about Docker 0.5.2, and you are (obviously) not running that version, I think we should move the conversation elsewhere...
Do you think you could ask your question again, either on the docker-user mailing list, or maybe on stack overflow?
You will need to tell exactly how your docker host is configured (bind9, right?), the content of /etc/resolv.conf, the exact problem that you see...
Sorry that I couldn't find a better solution; we will need to get some outside help!

@kthakore

This comment has been minimized.

Show comment
Hide comment
@kthakore

kthakore Dec 2, 2013

I can do that! Thx

On Sun, Dec 1, 2013 at 7:26 PM, Jérôme Petazzoni notifications@github.com
wrote:

Ah!
Well, since this issue started with something about Docker 0.5.2, and you are (obviously) not running that version, I think we should move the conversation elsewhere...
Do you think you could ask your question again, either on the docker-user mailing list, or maybe on stack overflow?
You will need to tell exactly how your docker host is configured (bind9, right?), the content of /etc/resolv.conf, the exact problem that you see...

Sorry that I couldn't find a better solution; we will need to get some outside help!

Reply to this email directly or view it on GitHub:
#1470 (comment)

kthakore commented Dec 2, 2013

I can do that! Thx

On Sun, Dec 1, 2013 at 7:26 PM, Jérôme Petazzoni notifications@github.com
wrote:

Ah!
Well, since this issue started with something about Docker 0.5.2, and you are (obviously) not running that version, I think we should move the conversation elsewhere...
Do you think you could ask your question again, either on the docker-user mailing list, or maybe on stack overflow?
You will need to tell exactly how your docker host is configured (bind9, right?), the content of /etc/resolv.conf, the exact problem that you see...

Sorry that I couldn't find a better solution; we will need to get some outside help!

Reply to this email directly or view it on GitHub:
#1470 (comment)

@kthakore

This comment has been minimized.

Show comment
Hide comment
@kthakore

kthakore Dec 2, 2013

Done.

https://groups.google.com/forum/#!topic/docker-user/_xcG8eeg2Ks

On Mon, Dec 2, 2013 at 2:17 PM, Kartik Thakore thakore.kartik@gmail.comwrote:

I can do that! Thx

On Sun, Dec 1, 2013 at 7:26 PM, Jérôme Petazzoni <notifications@github.com

wrote:

Ah!
Well, since this issue started with something about Docker 0.5.2, and you
are (obviously) not running that version, I think we should move the
conversation elsewhere...
Do you think you could ask your question again, either on the docker-user
mailing list, or maybe on stack overflow?
You will need to tell exactly how your docker host is configured (bind9,
right?), the content of /etc/resolv.conf, the exact problem that you see...
Sorry that I couldn't find a better solution; we will need to get some
outside help!


Reply to this email directly or view it on GitHubhttps://github.com/dotcloud/docker/issues/1470#issuecomment-29588020
.

kthakore commented Dec 2, 2013

Done.

https://groups.google.com/forum/#!topic/docker-user/_xcG8eeg2Ks

On Mon, Dec 2, 2013 at 2:17 PM, Kartik Thakore thakore.kartik@gmail.comwrote:

I can do that! Thx

On Sun, Dec 1, 2013 at 7:26 PM, Jérôme Petazzoni <notifications@github.com

wrote:

Ah!
Well, since this issue started with something about Docker 0.5.2, and you
are (obviously) not running that version, I think we should move the
conversation elsewhere...
Do you think you could ask your question again, either on the docker-user
mailing list, or maybe on stack overflow?
You will need to tell exactly how your docker host is configured (bind9,
right?), the content of /etc/resolv.conf, the exact problem that you see...
Sorry that I couldn't find a better solution; we will need to get some
outside help!


Reply to this email directly or view it on GitHubhttps://github.com/dotcloud/docker/issues/1470#issuecomment-29588020
.

@hughes

This comment has been minimized.

Show comment
Hide comment
@hughes

hughes Jan 4, 2014

This might be an issue again, or possibly a new issue? I'm also on OVH. I removed bind9/resolvconf and updated /etc/resolv.conf with no effect.

15:09 ~ > docker search ubuntu
2014/01/04 15:09:25 Error: Get https://index.docker.io/v1/search?q=ubuntu: dial tcp: lookup index.docker.io: no DNS servers
15:09 ~ > curl  https://index.docker.io/v1/search?q=ubuntu
{"query": "ubuntu", "num_results": 25 ...}

hughes commented Jan 4, 2014

This might be an issue again, or possibly a new issue? I'm also on OVH. I removed bind9/resolvconf and updated /etc/resolv.conf with no effect.

15:09 ~ > docker search ubuntu
2014/01/04 15:09:25 Error: Get https://index.docker.io/v1/search?q=ubuntu: dial tcp: lookup index.docker.io: no DNS servers
15:09 ~ > curl  https://index.docker.io/v1/search?q=ubuntu
{"query": "ubuntu", "num_results": 25 ...}
@crosbymichael

This comment has been minimized.

Show comment
Hide comment
@crosbymichael

crosbymichael Jan 6, 2014

Contributor

@hughes Maybe try restarted the docker daemon after you update your dns settings.

Contributor

crosbymichael commented Jan 6, 2014

@hughes Maybe try restarted the docker daemon after you update your dns settings.

@hughes

This comment has been minimized.

Show comment
Hide comment
@hughes

hughes Jan 6, 2014

@crosbymichael that did it, thanks for the tip.

hughes commented Jan 6, 2014

@crosbymichael that did it, thanks for the tip.

@merriam

This comment has been minimized.

Show comment
Hide comment
@merriam

merriam Feb 12, 2014

Contributor

Well, running Docker 0.8, I still get this annoying error. It may be related to the exact network I'm on at the moment, but nslookup, http, and everything else works. Odd docker thing.

It does seem to DNS related, but in an odd way.

This was at a coffeeshop. It failed

$ docker run ubuntu date
Unable to find image 'ubuntu' (tag: latest) locally
Pulling repository ubuntu
2014/02/11 17:25:29 pull: Get https://index.docker.io/v1/repositories/ubuntu/images: dial tcp: lookup index.docker.io: no DNS servers
$ nslookup index.docker.io
Server:         172.19.245.1
Address:        172.19.245.1#53
Non-authoritative answer:
index.docker.io canonical name = edge-dockerio.dotcloud.com.
Name:   edge-dockerio.dotcloud.com
Address: 54.224.119.89
Name:   edge-dockerio.dotcloud.com
Address: 54.234.135.251

This was elsewhere and it succeeded

$ nslookup index.docker.io
Server:     75.75.75.75
Address:    75.75.75.75#53
Non-authoritative answer:
index.docker.io canonical name = edge-dockerio.dotcloud.com.
Name:   edge-dockerio.dotcloud.com
Address: 54.234.135.251
Name:   edge-dockerio.dotcloud.com
Address: 54.224.119.89

So, er, huh.

Contributor

merriam commented Feb 12, 2014

Well, running Docker 0.8, I still get this annoying error. It may be related to the exact network I'm on at the moment, but nslookup, http, and everything else works. Odd docker thing.

It does seem to DNS related, but in an odd way.

This was at a coffeeshop. It failed

$ docker run ubuntu date
Unable to find image 'ubuntu' (tag: latest) locally
Pulling repository ubuntu
2014/02/11 17:25:29 pull: Get https://index.docker.io/v1/repositories/ubuntu/images: dial tcp: lookup index.docker.io: no DNS servers
$ nslookup index.docker.io
Server:         172.19.245.1
Address:        172.19.245.1#53
Non-authoritative answer:
index.docker.io canonical name = edge-dockerio.dotcloud.com.
Name:   edge-dockerio.dotcloud.com
Address: 54.224.119.89
Name:   edge-dockerio.dotcloud.com
Address: 54.234.135.251

This was elsewhere and it succeeded

$ nslookup index.docker.io
Server:     75.75.75.75
Address:    75.75.75.75#53
Non-authoritative answer:
index.docker.io canonical name = edge-dockerio.dotcloud.com.
Name:   edge-dockerio.dotcloud.com
Address: 54.234.135.251
Name:   edge-dockerio.dotcloud.com
Address: 54.224.119.89

So, er, huh.

@vieux vieux reopened this Feb 12, 2014

@bbradbury

This comment has been minimized.

Show comment
Hide comment
@bbradbury

bbradbury Feb 17, 2014

+1 on this, using the OSX boot2docker setup and 0.8.

+1 on this, using the OSX boot2docker setup and 0.8.

@bbradbury

This comment has been minimized.

Show comment
Hide comment
@bbradbury

bbradbury Feb 17, 2014

Update- flushed my DNS cache, restart boot2docker, success.

Macintosh:docker brent$ sudo killall -HUP mDNSResponder
Macintosh:docker brent$ boot2docker restart

Update- flushed my DNS cache, restart boot2docker, success.

Macintosh:docker brent$ sudo killall -HUP mDNSResponder
Macintosh:docker brent$ boot2docker restart
@bpinto

This comment has been minimized.

Show comment
Hide comment
@bpinto

bpinto Mar 11, 2014

I'm having the same issue running coreos inside a vagrant machine (osx host).

The solution was to restart docker service:

sudo systemctl restart docker.service

bpinto commented Mar 11, 2014

I'm having the same issue running coreos inside a vagrant machine (osx host).

The solution was to restart docker service:

sudo systemctl restart docker.service
@jianjin

This comment has been minimized.

Show comment
Hide comment
@jianjin

jianjin Apr 11, 2014

@bbradbury +1, works by flush dns and restart.

jianjin commented Apr 11, 2014

@bbradbury +1, works by flush dns and restart.

@bryanlarsen

This comment has been minimized.

Show comment
Hide comment
@bryanlarsen

bryanlarsen Apr 21, 2014

@kthakore, anybody on OVH and anybody who wants to continue running Bind9:

I solved the problem by

  • adding dns-nameservers 127.0.0.1 to the eth0 section of /etc/network/interfaces
  • ifdown eth0 && ifup eth0
  • /sbin/restart docker

@kthakore, anybody on OVH and anybody who wants to continue running Bind9:

I solved the problem by

  • adding dns-nameservers 127.0.0.1 to the eth0 section of /etc/network/interfaces
  • ifdown eth0 && ifup eth0
  • /sbin/restart docker
@thierrystiegler

This comment has been minimized.

Show comment
Hide comment
@momer

This comment has been minimized.

Show comment
Hide comment

momer commented Jun 2, 2014

@matejkramny

This comment has been minimized.

Show comment
Hide comment
@matejkramny

matejkramny Jun 12, 2014

i solved this by adding:

nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4

to /etc/resolv.conf

Hope this helps someone. Running ubuntu 14.04 LTS from OVH

i solved this by adding:

nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4

to /etc/resolv.conf

Hope this helps someone. Running ubuntu 14.04 LTS from OVH

@veggiemonk

This comment has been minimized.

Show comment
Hide comment
@veggiemonk

veggiemonk Jun 16, 2014

Contributor

👍 @bryanlarsen

By the way, I still don't understand what happened. If someone knows and would be kind enough to explain that would be much appreciated. Why is it specific to OVH servers (and in my case, to Kimsufi too)?

Contributor

veggiemonk commented Jun 16, 2014

👍 @bryanlarsen

By the way, I still don't understand what happened. If someone knows and would be kind enough to explain that would be much appreciated. Why is it specific to OVH servers (and in my case, to Kimsufi too)?

@matejkramny

This comment has been minimized.

Show comment
Hide comment
@matejkramny

matejkramny Jun 16, 2014

They have their own distribution. I am betting on a custom kernel and setup of the networking, although im unqualified to prove such.

I had trouble installing Xen and configuring grub (selecting the kernel). That may be related too.

Matej Kramny

On Monday, 16 June 2014 at 21:33, Julien Bisconti wrote:

@bryanlarsen (https://github.com/bryanlarsen)
By the way, I still don't understand what happened. If someone knows and would be kind enough to explain that would be much appreciated. Why is it specific to OVH servers (and in my case, to Kimsufi too)?


Reply to this email directly or view it on GitHub (#1470 (comment)).

They have their own distribution. I am betting on a custom kernel and setup of the networking, although im unqualified to prove such.

I had trouble installing Xen and configuring grub (selecting the kernel). That may be related too.

Matej Kramny

On Monday, 16 June 2014 at 21:33, Julien Bisconti wrote:

@bryanlarsen (https://github.com/bryanlarsen)
By the way, I still don't understand what happened. If someone knows and would be kind enough to explain that would be much appreciated. Why is it specific to OVH servers (and in my case, to Kimsufi too)?


Reply to this email directly or view it on GitHub (#1470 (comment)).

@bryanlarsen

This comment has been minimized.

Show comment
Hide comment
@bryanlarsen

bryanlarsen Jun 16, 2014

@matejkrammy, resolv.conf gets overwritten on reboot in Ubuntu, so your solution is only temporary. Maybe that's what you wanted.

@matejkrammy, resolv.conf gets overwritten on reboot in Ubuntu, so your solution is only temporary. Maybe that's what you wanted.

@momer

This comment has been minimized.

Show comment
Hide comment
@momer

momer Jun 17, 2014

I added some information and resolutions to docker DNS issues on OVH on my blog at http://soryy.com/

That should help you poor souls out a bit. 😄

momer commented Jun 17, 2014

I added some information and resolutions to docker DNS issues on OVH on my blog at http://soryy.com/

That should help you poor souls out a bit. 😄

@veggiemonk

This comment has been minimized.

Show comment
Hide comment
@veggiemonk

veggiemonk Jun 17, 2014

Contributor

@matejkramny It is true that they use a modified custom kernel on OVH/Kimsufi but the problem happens even with generic kernel

▶ uname -r
3.13.0-29-generic

And I'm on a Ubuntu 14.04

@momer Thank you for the blog post. Although I noticed you added Google name server (dns-nameservers 127.0.0.1 8.8.8.8 8.8.4.4) in /etc/network/interfaces. Which means that every dns request on your server may be redirected to Google NS... @bryanlarsen's solution is the cleanest so far by just adding dns-nameservers 127.0.0.1 to /etc/network/interfaces and setting /etc/default/docker.io:

DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

And I still don't understand why docker has a DNS problem...

Contributor

veggiemonk commented Jun 17, 2014

@matejkramny It is true that they use a modified custom kernel on OVH/Kimsufi but the problem happens even with generic kernel

▶ uname -r
3.13.0-29-generic

And I'm on a Ubuntu 14.04

@momer Thank you for the blog post. Although I noticed you added Google name server (dns-nameservers 127.0.0.1 8.8.8.8 8.8.4.4) in /etc/network/interfaces. Which means that every dns request on your server may be redirected to Google NS... @bryanlarsen's solution is the cleanest so far by just adding dns-nameservers 127.0.0.1 to /etc/network/interfaces and setting /etc/default/docker.io:

DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

And I still don't understand why docker has a DNS problem...

@momer

This comment has been minimized.

Show comment
Hide comment
@momer

momer Jun 17, 2014

@veggiemonk as I mentioned in the post, I was having issues resolving DNS within my containers; adding Google DNS was a fine solution for me. Additionally, adding loop back alone to resolvconf didn't resolve all my issues, even when combined with the --DNS options.

Do you run your own DNS? Do you really care that it's being routed through Google? Honestly, in most cases, being concerned about performance there is sort of YAGNI.

I'm not saying it's a perfect solution, but it certainly is an OK temp solution.

momer commented Jun 17, 2014

@veggiemonk as I mentioned in the post, I was having issues resolving DNS within my containers; adding Google DNS was a fine solution for me. Additionally, adding loop back alone to resolvconf didn't resolve all my issues, even when combined with the --DNS options.

Do you run your own DNS? Do you really care that it's being routed through Google? Honestly, in most cases, being concerned about performance there is sort of YAGNI.

I'm not saying it's a perfect solution, but it certainly is an OK temp solution.

@unclejack

This comment has been minimized.

Show comment
Hide comment
@unclejack

unclejack Jul 9, 2014

Contributor

These are network problems and not exactly Docker bugs.

I'll close this now since this isn't immediately actionable.

Please feel free to comment if you've run into this problem or if you think this should remain open.

Thanks.

Contributor

unclejack commented Jul 9, 2014

These are network problems and not exactly Docker bugs.

I'll close this now since this isn't immediately actionable.

Please feel free to comment if you've run into this problem or if you think this should remain open.

Thanks.

@unclejack unclejack closed this Jul 9, 2014

@CyberShadow

This comment has been minimized.

Show comment
Hide comment
@CyberShadow

CyberShadow Aug 6, 2014

These are network problems and not exactly Docker bugs.

I believe that to be a misunderstanding.

The problem is that Docker (or the network library Docker uses) uses a different way of resolving hostnames than other applications. Whereas every application on a machine can resolve index.docker.io just fine, Docker fails. My guess is that for some odd reason it does not use the standard C getaddrinfo function.

These are network problems and not exactly Docker bugs.

I believe that to be a misunderstanding.

The problem is that Docker (or the network library Docker uses) uses a different way of resolving hostnames than other applications. Whereas every application on a machine can resolve index.docker.io just fine, Docker fails. My guess is that for some odd reason it does not use the standard C getaddrinfo function.

@unclejack

This comment has been minimized.

Show comment
Hide comment
@unclejack

unclejack Aug 6, 2014

Contributor

This has been fixed by switching to Go 1.3 and the next Docker release shouldn't be running into this problem any more.

Contributor

unclejack commented Aug 6, 2014

This has been fixed by switching to Go 1.3 and the next Docker release shouldn't be running into this problem any more.

@momer

This comment has been minimized.

Show comment
Hide comment
@momer

momer Aug 6, 2014

@unclejack can you expand on the specific changes which were made? I imagine it has to do with the bridge that's created?

momer commented Aug 6, 2014

@unclejack can you expand on the specific changes which were made? I imagine it has to do with the bridge that's created?

@mfaure

This comment has been minimized.

Show comment
Hide comment
@mfaure

mfaure Nov 15, 2014

I am still having the problem with Docker 1.3.1 build 4e9bbfa, on a "VPS Cloud" from OVH.

~# docker search ubuntu
2014/11/15 09:06:55 Error response from daemon: Get https://index.docker.io/v1/search?q=ubuntu: dial tcp: lookup index.docker.io: no DNS servers

And resolving indox.docker.io from command line is OK, whereas it is not for Docker.

I also tried to add DOCKER_OPTS="--dns 127.0.0.1 --dns 213.186.33.99" to /etc/default/docker but that does not work either.

I have nothing in the /etc/resolv.conf but adding @bryanlarsen's solution prevents the vps from booting correctly (!) (needs further investigations)

mfaure commented Nov 15, 2014

I am still having the problem with Docker 1.3.1 build 4e9bbfa, on a "VPS Cloud" from OVH.

~# docker search ubuntu
2014/11/15 09:06:55 Error response from daemon: Get https://index.docker.io/v1/search?q=ubuntu: dial tcp: lookup index.docker.io: no DNS servers

And resolving indox.docker.io from command line is OK, whereas it is not for Docker.

I also tried to add DOCKER_OPTS="--dns 127.0.0.1 --dns 213.186.33.99" to /etc/default/docker but that does not work either.

I have nothing in the /etc/resolv.conf but adding @bryanlarsen's solution prevents the vps from booting correctly (!) (needs further investigations)

@momer

This comment has been minimized.

Show comment
Hide comment
@momer

momer Nov 15, 2014

In my post at http://soryy.com/blog/2014/docker-resolving-dns-issues-on-ovh/ (also posted above...), the first point is, "However, you should never use the OVH custom kernel if you plan on using linux containers."

momer commented Nov 15, 2014

In my post at http://soryy.com/blog/2014/docker-resolving-dns-issues-on-ovh/ (also posted above...), the first point is, "However, you should never use the OVH custom kernel if you plan on using linux containers."

@momer

This comment has been minimized.

Show comment
Hide comment
@momer

momer Nov 15, 2014

Also, I would suggest that this is not a docker issue, but a kernel config / OVH networking issue

momer commented Nov 15, 2014

Also, I would suggest that this is not a docker issue, but a kernel config / OVH networking issue

@mfaure

This comment has been minimized.

Show comment
Hide comment
@mfaure

mfaure Nov 21, 2014

It finally worked for me having changed the kernel of my VPS from OVH custom one to Ubuntu default one, like described in comment from Stalbe in issue 4666

My synthesis (in french) Docker + VPS Cloud OVH

mfaure commented Nov 21, 2014

It finally worked for me having changed the kernel of my VPS from OVH custom one to Ubuntu default one, like described in comment from Stalbe in issue 4666

My synthesis (in french) Docker + VPS Cloud OVH

@saxxi

This comment has been minimized.

Show comment
Hide comment
@saxxi

saxxi Feb 18, 2015

+1 for @matejkramny suggestion, it worked for me too. I had to flush cache http://osxdaily.com/2008/03/21/how-to-flush-your-dns-cache-in-mac-os-x/ and restart with boot2docker restart as well.

saxxi commented Feb 18, 2015

+1 for @matejkramny suggestion, it worked for me too. I had to flush cache http://osxdaily.com/2008/03/21/how-to-flush-your-dns-cache-in-mac-os-x/ and restart with boot2docker restart as well.

@NigelThorne

This comment has been minimized.

Show comment
Hide comment
@NigelThorne

NigelThorne May 28, 2015

I got this error. I tried adding to /etc/resolv.conf with no luck. I then found http://askubuntu.com/questions/130452/how-do-i-add-a-dns-server-via-resolv-conf

... which said "If you really want to add more entries to /etc/resolv.conf, create a /etc/resolvconf/resolv.conf.d/tail and add them there."

...which worked.

I got this error. I tried adding to /etc/resolv.conf with no luck. I then found http://askubuntu.com/questions/130452/how-do-i-add-a-dns-server-via-resolv-conf

... which said "If you really want to add more entries to /etc/resolv.conf, create a /etc/resolvconf/resolv.conf.d/tail and add them there."

...which worked.

@turbo turbo referenced this issue in fiorix/freegeoip Jun 26, 2015

Closed

Error fetching databases when behind ipv6. #130

@sanjaykumarjha

This comment has been minimized.

Show comment
Hide comment
@sanjaykumarjha

sanjaykumarjha Sep 17, 2015

i am trying to login on remote docker resgitry..in this case password is incorrect..
[root@admin ~]# docker login -e testid@gmail.com -u test -p xyzz

result
Error response from daemon: Wrong login/password, please try again

but again if i run same command with incorrect password
why docker shows below line of error message..why error message get changed by this line

Error response from daemon: Get https://index.docker.io/v1/users/: dial tcp: lookup index.docker.io: Temporary failure in name resolution

is there any way to get last line or error message..?

i am trying to login on remote docker resgitry..in this case password is incorrect..
[root@admin ~]# docker login -e testid@gmail.com -u test -p xyzz

result
Error response from daemon: Wrong login/password, please try again

but again if i run same command with incorrect password
why docker shows below line of error message..why error message get changed by this line

Error response from daemon: Get https://index.docker.io/v1/users/: dial tcp: lookup index.docker.io: Temporary failure in name resolution

is there any way to get last line or error message..?

@avramirez

This comment has been minimized.

Show comment
Hide comment
@avramirez

avramirez Oct 26, 2015

After adding the name servers. I restarted docker/docker-machine and it worked.

After adding the name servers. I restarted docker/docker-machine and it worked.

@greut greut referenced this issue in HE-Arc/LocationMateriel Feb 24, 2016

Closed

Description des articles #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment