繁体   English   中英

如何设置 Nexus OSS 以使用 docker 代理凭据

[英]How to setup Nexus OSS in order to use docker proxy credentials

我购买了 Docker 帐户并使用 Nexus OSS 设置我的 Docker 代理,如下所示:

Repositories -> Create a Docker Proxy -> Select Use Docker Hub (Remote Storage: https://registry-1.docker.io ) -> with Authentication Enabled (providing username/password of Docker)

在我的客户端内部,我使用以下命令将其配置为使用我的 Nexus 作为注册表镜像:

systemctl edit docker

然后补充说:

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --registery-mirror=https://myprivatenexus.com

然而,当我尝试在我的客户端中使用“ docker pull ”时,我会收到烦人的“Docker Hub Pull Limits”错误。

是否可以在 Nexus 中使用我的 Docker 帐户,还是应该尝试其他方法?

在此处输入图像描述 在此处输入图像描述

我们在类似的环境中使用了 Nexus。 您的关系配置看起来像我们的。 对我来说,客户端镜像配置看起来很奇怪。 如果我在没有任何已配置连接器的情况下访问关联存储库,则必须在客户端配置整个上下文路径。

截图后: https://YOUR_SERVER/repository/DockerHub

如果您要连接一个专用的存储库连接器,例如 http/8088,那么您可以配置您的客户端

http://YOUR_SERVER:8088

sonatype 的文档描述相同:

为用户界面配置的上下文路径不会影响 Docker 使用的存储库连接器 URL。 Eg if your repository manager instance is configured to be available at http://localhost:8081/nexus instead of the default root context http://localhost:8081/, the URLs for your Docker repositories will still only use the configured port for存储库并省略 URL 中的上下文路径。 这是 Docker 不支持注册表 API 中的上下文路径这一事实的副作用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM