docker:来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:服务不可用。在DOCKER中 [英] docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Service Unavailable. IN DOCKER , MAC

查看:618
本文介绍了docker:来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:服务不可用。在DOCKER中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Mac系统10.11.6中有此问题

I am having this issue in my Mac system 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设置了代理。

I have looked for solution that says to set proxy , but i have set the proxy for the wifi .

https://docs.docker.com/docker-for-mac/networking/#httphttps-proxy-support

仍然无法正常工作。

我已将docker的代理设置为。

I have set proxy for docker to . It is not working .

首选项->代理

Docker版本17.12 ce

Docker version 17.12 ce

我还想知道代理是否存在问题,如何检查它的设置,如何解决?我走错了路吗?

I also want to know if proxy is issue then , how can i check it is set , what is work around for this ? Is i am in wrong path ?

编辑

每个答案都会有所帮助,所以共享您如何解决该问题。

Every answer helps , so share how you solve that .

推荐答案

以下是一些建议:


  1. 尝试重新启动Docker服务。

  2. 检查网络连接。例如,通过以下shell命令:

  1. Try restarting your Docker service.
  2. Check your network connections. For example by the following shell commands:

</dev/tcp/registry-1.docker.io/443 && echo Works || echo Problem
curl https://registry-1.docker.io/v2/ && echo Works || echo Problem


  • 检查您的代理设置(例如,在 / etc / default / docker 中)。

    如果上述方法无济于事,则可能是Docker服务的暂时问题(根据 Service Unavailable )。

    If above won't help, this could be a temporary issue with the Docker services (as per Service Unavailable).

    相关: GH-842-503服务在http://hub.docker.com 不可用。

    Related: GH-842 - 503 Service Unavailable at http://hub.docker.com.

    我遇到了这个问题

    您可以考虑在 docker / hub-feedback repo ,在 Docker社区论坛,或直接联系 Docker支持

    You can consider raising the issue at docker/hub-feedback repo, check at, Docker Community Forums, or contact Docker Support directly.

    这篇关于docker:来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:服务不可用。在DOCKER中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆