Docker Community Forums

Share and learn in the Docker community.

Problems Ubuntu 14.04 , docker cannot get images


(Jschaefer) #1

Ubuntu 14.04 LTS
Error Message:

docker pull hello-world
Using default tag: latest
Pulling repository docker.io/library/hello-world
Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: Method Not Allowed

I tried out a lot of different configurations since three days, no change to resolve the problem.

export http_proxy, https_proxy, different settings in /etc/default/docker (also proxy), proxy settings in
/etc/apt/apt.conf .

No more Ideas , how I can bring docker to the start.


(Jschaefer) #2

it is a proxy problem, now i try cntlm and receive a new error:

docker run hello-world
Unable to find image ‘hello-world:latest’ locally
Pulling repository docker.io/library/hello-world
docker: Error while pulling image: Get https://index.docker.io/v1/repositories/library/hello-world/images: unexpected EOF.


(Jschaefer) #3

problem solved after decoding password in /etc/default/docker


(Dougc822) #4

I am seeing a similar problem when I try to pul a remote image this is what I see:

docker pull fedora
Using default tag: latest
Pulling repository docker.io/library/fedora
Error while pulling image: Get https://index.docker.io/v1/repositories/library/fedora/images: dial tcp 52.72.231.247:443: getsockopt: connection refused

When I run docker on the local machine it works, but the networks config is probably bad, I am behind a corporate proxy. Tried putting the export commands in .bashrc .proxy init.d/docker and default/docker, any help would be very gratefully received.


(Dvohra) #5

To the /etc/default/docker file add the DOCKER_OPTS. Refer
Configuring Docker
https://docs.docker.com/engine/admin/configuring/


(Dougc822) #6

Turned on debug and listening on port 2376, restarted the daemon saw the message below.

root@XM647:~# docker ps -l
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

I have had this setup running at one time just by following instructions on the install ubuntu14.04 page. The problem I have is there appears to be multiple install pages for docker on this system, either that or I am seeing things and there are multiple entry points leading to one page.


(Dvohra) #7

Cannot connect to the Docker daemon. Is the docker daemon running on this host?
usually implies a command needs to be run as sudo or root.


(Dougc822) #8

I fixed my problem by putting my proxy information in the /etc/default/docker file. Restart docker and I am now pulling what ever I need. These proxy’s where declared as environmental variables and the command “echo $http_proxy” would then display the string. all this file does is repeat what was done in the proxy script. Which begs the uestion is docker reading the env variables or pulling from the docker file. I think I know the answer the question was rhetorical.


(Dvohra) #9

If adding to /etc/default/docker file fixed the issue, the /etc/default/docker file.