Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed to connect to registry.hub.docker.com port 443: Connection timed out #1459

Open
3 tasks done
maya6 opened this issue May 19, 2023 · 5 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@maya6
Copy link

maya6 commented May 19, 2023

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

1.11.0

Installation Type

Official Docker Compose

Service Name

Deploy(DongTai-deploy)

Describe the details of the bug and the steps to reproduce it

在进行docker安装时出现访问registry.hub.docker.com无法连接的问题,测试可能docker.com网络墙的问题,看能否解决下

image

Additional Information

No response

Logs

No response

@maya6 maya6 added the bug Something isn't working label May 19, 2023
@Bidaya0
Copy link
Collaborator

Bidaya0 commented May 19, 2023

This is due to the fact that the official docker registry is DNS polluted. Try to configure a mirror registry that is reachable in the docker configuration

@maya6
Copy link
Author

maya6 commented May 19, 2023

Thank you

@zzjie871
Copy link

只为了拿一个版本号,这样搞有点麻烦了。

@SungXY
Copy link

SungXY commented Jul 20, 2023

遇到了同样的问题,有没有解决方案呢

@whd3131
Copy link

whd3131 commented Sep 15, 2023

Open the dtctl file and modify it as follows:

function get_latest_release_version() {
  # ver=`curl -s -S "https://registry.hub.docker.com/v2/repositories/dongtai/dongtai-web/tags" | sed -e 's/,/,\n/g' -e 's/\[/\[\n/g' | grep '"name"' | awk -F\" '{print $4;}' | grep -v beta |sed -n '2p'`
  ver="1.14.0"
  echo "$ver"
}
get_latest_image_tag_from_dockerhub() {
  image="$1"
  Info "start to get latest tag of $image"
  # tags=`curl -s -S "https://registry.hub.docker.com/v2/repositories/${image}/tags" | sed -e 's/,/,\n/g' -e 's/\[/\[\n/g' | grep '"name"' | awk -F\" '{print $4;}' | grep -v beta | sed -n '2p'`
  tags="1.14.0"

  if [ -n "$2" ]
  then
      tags=` echo "${tags}" | grep "$2" `
  fi
  echo "${tags}" | grep -E '^([0-9]+\.){0,2}(\*|[0-9]+)$' | tail -n 1
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants