早上好,我从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
我在哪里失败?
答案 0 :(得分:0)
Environment =“ HTTP_PROXY = E10697:xxxxxx ++ @ 10.162.64.36:8080” 环境=“ HTTPS_PROXY = E10697:xxxxxx ++ @ 10.162.64.36:8080”
这必须解决
答案 1 :(得分:0)
RHEL 8中没有docker。RH构建了不需要守护程序的docker兼容工具(Podman,Buildah)。
使用
请参阅以下文档/页面: Intro to RHEL 8 container tools
另外,请参见此intro to RHEL 8 page。