我最近将docker从1.4更新为1.5(带有包lxc_docker
)。
从那时起,docker守护进程发送如下错误(针对每个命令):
$ 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[0000] Error response from daemon: 404 page not found
但是,如果我使用客户端的先前版本,则会得到很好的答案:
$ /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
这似乎是代理设置(HTTP_PROXY
和HTTPS_PROXY
变量在此服务器上使用),我可以解决通过设置问题NO_PROXY
变量:
$ 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
您知道这个问题的真正根源吗?以及如何彻底解决呢?