Docker Hub Registry无法从Github存储库构建Docker映像

时间:2019-05-30 07:15:50

标签: docker github build

两天以来,我不知道为什么,我无法通过具有链接的github项目的Docker Hub注册表来构建docker映像(以前正在工作)

许多答案是关于 github子模块的 不是我的情况。

这是日志

Building in Docker Cloud's infrastructure...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
please ensure the correct public key is added to the list of trusted keys for this repository (128)

我尝试搜索,但没有发现与我无关的答案。

3 个答案:

答案 0 :(得分:1)

经过数小时的搜索,我认为找到了答案。

对于那些可能遇到相同问题的人,我在这里给出了答案。

看来Docker已经更改了他的应用程序的名称。从 Docker Hub Registry 重命名为 Docker Hub Builder

为了修复它,所以我切断了Docker和Github之间的应用程序链接。并重新创建链接。

它在Github中为我添加了一个授权应用程序,即图像宽度的证明 Docker Hub Builder

enter image description here

答案 1 :(得分:0)

可能有人需要这个。对我来说,单击Docker-Hub上GitHub帐户的重新链接按钮可以解决此问题。

您可以在此页面中重新链接:https://hub.docker.com/settings/linked-accounts

答案 2 :(得分:0)

首先,尝试 re-linking your GitHub account to Docker Hubchecking your GitHub org's 'Third party application access policy',正如前面的答案所建议的那样。

如果您的 Docker Hub 存储库归某个组织所有,请访问该组织的 Linked Accounts 设置并尝试重新链接提供者:

Docker Hub organisation > Settings > Linked Accounts

如果这不能解决问题,请访问您的 Docker Hub 存储库 > Builds > Configure Automated Builds,然后查看 Source repository 列表:

Docker Hub > Build configurations > Source repository

这将显示 Docker Hub 可以访问哪些存储库。

就我而言,列表中缺少一些存储库,因为 Docker Hub 只能看到链接的 GitHub 帐户具有管理员访问权限的存储库。

结论:与 Docker Hub 关联的 GitHub 帐户需要对相关 GitHub 存储库的管理员访问权限

Giving the GitHub account admin access 到相关存储库修复了我的 Docker Hub 构建。

相关问题