9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker run等のコマンド実行時に404 page not foundとエラーになった場合の対処

Posted at

新しいdockerで環境変数でhttp_proxy、https_proxyを使っている場合に「404 page not found」と言われてエラーになるようでした。

例えば↓みたいになります。

masami@saga:~$ 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

githubのAdd documentation for HTTP proxies #10192を見ると環境変数にNO_PROXYを設定して/var/run/docker.sockへのアクセスにはproxyを介さないようにしろということなので.bashrcに下記行を追加し、

NO_PROXY=/var/run/docker.sock ; export NO_PROXY

再度versionを見てみると今度は何も問題なくコマンドが完了しました。

masami@saga:~$ 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

こちらを参考にしました。
Docker daemon answer 404 after update

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?