Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Error response from daemon: 404 page not found" While using docker command

Tags:

docker

While i'm using the docker command i'm getting below error. Anyone have solution for this? Please help me to sort out this issue.

akshath@akshu:~$ docker images
Error response from daemon: 404 page not found
akshath@akshu:~$ docker version
Client:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.2
Git commit:   a34a1d5
Built:        Fri Nov 20 13:16:54 UTC 2015
OS/Arch:      linux/amd64
Error response from daemon: 404 page not found
like image 223
Akshath Kumar Avatar asked Dec 12 '15 05:12

Akshath Kumar


2 Answers

As mentioned in "Docker daemon answers '404 page not found' after update", check if you have any PROXY defined (HTTP_PROXY, HTTPS_PROXY) in your current environment (env|grep -i proxy)

It is referenced in issue 109.

Also issue 17960 reports the same problem, and includes:

sudo mv /var/lib/docker/network/files/ /path/to/backup/docker-network-files

solved the problem.

(If everything goes well, /path/to/backup/docker-network-files can be deleted)

If that is not enough, chech systemctl status docker.service or logs, to find the real cause.

If this is still not working:

  • uninstalling/ reinstalling docker can help
  • make sure to move after uninstall the /var/lib/docker/network folder, to have a fresh start.

Exact Answer:

issue 17083: Moving /var/lib/docker away solved the problem. Or: "I removed only /var/lib/docker/network and now everything works well and without containers lost."

like image 94
VonC Avatar answered Nov 12 '22 21:11

VonC


I had this exact same problem on Ubuntu 14.04. Changing the folder or removing it did nothing for me, BUT because Ubuntu never updates it's repos, my version of docker was waaaaaay out of date. I was running 1.6 when the latest is 1.11.

Follow this instructions to update Docker on Ubuntu: https://docs.docker.com/engine/installation/linux/ubuntulinux/

and try again. This fixed my issue!

like image 35
Vicky Steeves Avatar answered Nov 12 '22 21:11

Vicky Steeves