来自守护程序的错误响应:获取 https://registry-1.docker.io/v2/:需要代理身份验证
Error response from daemon: Get https://registry-1.docker.io/v2/: Proxy Authentication Required
早上好,我从 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: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
我哪里会失败?
环境=“HTTP_PROXY=E10697:xxxxxx++@10.162.64.36:8080”
环境=“HTTPS_PROXY=E10697:xxxxxx++@10.162.64.36:8080”
这必须解决
RHEL 8 中没有 docker。RH 构建了 docker 兼容工具(Podman、Buildah),不需要守护进程。
使用
yum install -y podman
别名docker=podman
查看这些 docs/pages:
Intro to RHEL 8 container tools
另请参阅此 intro to RHEL 8 page。
早上好,我从 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: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
我哪里会失败?
环境=“HTTP_PROXY=E10697:xxxxxx++@10.162.64.36:8080” 环境=“HTTPS_PROXY=E10697:xxxxxx++@10.162.64.36:8080”
这必须解决
RHEL 8 中没有 docker。RH 构建了 docker 兼容工具(Podman、Buildah),不需要守护进程。
使用
yum install -y podman
别名docker=podman
查看这些 docs/pages: Intro to RHEL 8 container tools
另请参阅此 intro to RHEL 8 page。