Scenario / Questions
I recently updated my docker from 1.4 to 1.5 (with the package
Since then, docker daemon sends an error like this (for every command):
$ docker version Client version: 1.5.0 Client API version: 1.17 Go version (client): go1.4.1 Git commit (client): a8a31ef OS/Arch (client): linux/amd64 FATA Error response from daemon: 404 page not found
But if I use the previous version of the client, i get the fine answer:
$ /usr/bin/docker-old version Client version: 1.4.0 Client API version: 1.16 Go version (client): go1.3.3 Git commit (client): 4595d4f OS/Arch (client): linux/amd64 Server version: 1.5.0 Server API version: 1.17 Go version (server): go1.4.1 Git commit (server): a8a31ef
It seems to be proxy settings (
HTTPS_PROXY variables are used on this server), and I can solve the problem by setting the
$ export NO_PROXY="/var/run/docker.sock" $ docker version Client version: 1.5.0 Client API version: 1.17 Go version (client): go1.4.1 Git commit (client): a8a31ef OS/Arch (client): linux/amd64 Server version: 1.5.0 Server API version: 1.17 Go version (server): go1.4.1 Git commit (server): a8a31ef
Do you know where this problem really come from? And how to cleanly solve it?
Find below all possible solutions or suggestions for the above questions..
It’s a new 1.5 feature, a guy from docker (@icecrime on twitter) has confirmed it.
the documentation is up to date : https://github.com/docker/docker/pull/10192/files
So you don’t have to cleanly solve it. This is the right way to use docker behind a proxy.
Do you know where this problem really come from?
The problem comes from the fact that docker needlessly (one could argue erroneously) tries to use proxy (if specified by
HTTPS_PROXY environment variables) to access local unix domain socket at
And how to cleanly solve it?
This was fixed in version 1.6.0 by not trying to use proxy in this case. As a result there’s no need to add
NO_PROXY environment variable any more.
Kubernetes Free Online Tutorial, Kubernetes Beginner Tutorial
DevOps Free Online Tutorial, DevOps Beginner Tutorial
Ansible Free Online Tutorial, Ansible Beginner Tutorial
Docker Free Online Tutorial, Docker Beginner Tutorial
Openstack Free Online Tutorial, Openstack Beginner Tutorial
Disclaimer: This has been sourced from a third party syndicated feed through internet. We are not responsibility or liability for its dependability, trustworthiness, reliability and data of the text. We reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever.