我在我的Mac系统10.11.6中遇到这个问题
system3:postgres saurabh-gupta2$ docker build -t postgres .
Sending build context to Docker daemon 38.91kB
Step 1/51 : FROM registry.access.redhat.com/rhel7/rhel
Get https://registry.access.redhat.com/v2/: Service Unavailable
docker run -t apline
Unable to find image 'apline:latest' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Service Unavailable.
See 'docker run --help'.
我一直在寻找一个解决方案,说要设置代理,但我已经为wifi设置了代理。
https://docs.docker.com/docker-for-mac/networking/#httphttps-proxy-support
尽管如此,它还是不起作用。
我也为docker设置了代理。它不起作用。
首选->代理
Docker版本17.12 ce
我还想知道如果代理是问题所在,那么我如何检查它是否已设置,解决此问题的方法是什么?
发布于 2018-12-03 09:16:52
我试着在Windows上运行,在更新后遇到了这个问题。我尝试重新启动docker服务以及我的pc,但都不起作用。
运行时:
curl https://registry-1.docker.io/v2/ && echo Works
我回来了:
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}
Works
最后,我尝试了:https://github.com/moby/moby/issues/22635#issuecomment-284956961
将固定地址更改为8.8.8.8:
这对我很有效!我仍然收到了curl https://registry-1.docker.io/v2/
的未经授权的消息,但我设法从docker hub中提取了图像。
发布于 2018-10-31 00:39:05
对我来说,当我第一次安装Docker并运行
docker run hello-world
在运行以下命令时,我收到了一个要求身份验证的错误
curl https://registry-1.docker.io/v2/ && echo Works
我所需要做的就是重新启动我的MacOS,然后再次运行该命令,它刚刚开始拉取图像,然后我得到了消息
Hello from Docker!
This message shows that your installation appears to be working correctly.
发布于 2020-07-02 19:49:02
docker logout
docker login
这可能会解决你的问题
https://stackoverflow.com/questions/49387263
复制相似问题