守护程序的错误响应:获取https://registry-1.docker.io/v2/:需要代理身份验证

问题描述 投票:0回答:1

早上好,我从RED HAT 8服务器上的docker开始,但是我在使docker运行hello工作时遇到问题,出现以下错误:

[root@srvdevrma1 ~]# docker run hello-world
Unable to find image ‘hello-world:latest’ locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Proxy Authentication Required.
See ‘docker run --help’.

与我登录时相同

[root@srvdevrma1 ~]# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don’t have a Docker ID, head over to https://hub.docker.com to create one.
Username: cesarjv
Password:
Error response from daemon: Get https://registry-1.docker.io/v2/: Proxy Authentication Required
[root@srvdevrma1 ~]#

Configure my proxy:

[root@srvdevrma1 ~]# echo $http_proxy
http://E10697:[email protected]:8080/

[root@srvdevrma1 ~]# echo $https_proxy
http://E10697:[email protected]:8080/

[root@srvdevrma1 ~]# cat /etc/apt/apt.conf.d/proxy.conf
Acquire::http::Proxy “http://E10697:[email protected]:8080//”;
Acquire::https::Proxy “http://E10697:[email protected]:8080//”;

[root@srvdevrma1 ~]# cat /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment=“HTTP_PROXY=10.162.64.36:8080”
Environment=“HTTPS_PROXY=10.162.64.36:8080”
Environment=“NO_PROXY=localhost,127.0.0.1”

然后运行

systemctl daemon-reload

systemctl restart docker

我在哪里失败?

docker proxy redhat
1个回答
0
投票

环境=“ HTTP_PROXY = E10697:xxxxxx ++ @ 10.162.64.36:8080”环境=“ HTTPS_PROXY = E10697:xxxxxx ++ @ 10.162.64.36:8080”

此必须解决

© www.soinside.com 2019 - 2024. All rights reserved.