###内容
https://qiita.com/amenoyoya/items/ca9210593395dbfc8531のDocker環境構築の部分を参考にしてUbuntuにDockerをインストールしたのですが、動作確認等をした際にproxyに阻まれてしまい困っています。
.bashrc等にはproxyの設定をしてあり、docker以外は外と通信が出来ている状態です。
###実行したコマンド
docker run hello-world
###エラー内容
Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'docker run --help'.
###試したこと
- http-proxy.confへの環境変数の追加
#/etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=http://xxx.xxx.xxx:yyyy" Environment="HTTPS_PROXY=http://xxx.xxx.xxx:yyyy" Environment="NO_PROXY=localhost,127.0.0.1,x.x.x.x,y.y.y.y"
-
resolv.confの内容の変更
-
その他ネットで調べた内容等
現在は、Ubuntuの再インストールからやり直し、http-proxy.confへの記載のみしている状態です。
###バージョン等
- Windows10 Enterprise 1909
- wsl2
- Ubuntu20.04LTS
- Docker 20.10.8
- Docker-Compose v2.0.0-rc.3
ネットで情報を探しているのですが、なかなか解決の糸口が見つからずちょっとした意見でもいただけるとありがたいです。
あなたの回答
tips
プレビュー