Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
来自守护进程的错误响应:Gethttps://registry-1.docker.io/v2/: 需要代理身份验证_Docker_Proxy_Redhat - Fatal编程技术网

来自守护进程的错误响应:Gethttps://registry-1.docker.io/v2/: 需要代理身份验证

来自守护进程的错误响应:Gethttps://registry-1.docker.io/v2/: 需要代理身份验证,docker,proxy,redhat,Docker,Proxy,Redhat,早上好,我从RED HAT 8服务器上的docker开始,但我在让docker运行hello work时遇到问题,我遇到以下错误: [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 Authentica

早上好,我从RED HAT 8服务器上的docker开始,但我在让docker运行hello work时遇到问题,我遇到以下错误:

[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:xxxxxx++@10.162.64.36:8080/

[root@srvdevrma1 ~]# echo $https_proxy
http://E10697:xxxxxx++@10.162.64.36:8080/

[root@srvdevrma1 ~]# cat /etc/apt/apt.conf.d/proxy.conf
Acquire::http::Proxy “http://E10697:xxxxxx++@10.162.64.36:8080//”;
Acquire::https::Proxy “http://E10697:xxxxxx++@10.162.64.36: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

哪里可以失败?

Environment=“HTTP\u PROXY=E10697:xxxxxx++@10.162.64.36:8080” Environment=“HTTPS_PROXY=E10697:xxxxxx++@10.162.64.36:8080”


这必须解决RHEL 8中没有docker的问题。RH构建的docker兼容工具(Podman、Buildah)不需要守护进程

使用

yum安装-y-podman 别名docker=podman 请参阅以下文档/页面:


另外,请参见此图。

我假定您在代理配置之后重新加载了守护程序当然,我运行:systemctl daemon reload systemctl restart docker为什么您的系统代理配置和docker代理配置不同?docker代理中的身份验证详细信息在哪里?因此它出现在我在互联网上看到的教程中,你能给出它应该如何运行的答案吗?它与echo$http_proxy
http://E10697:xxxxxx++@10.162.64.36:8080