![](/img/trans.png)
[英]Docker images proxy server (private docker registry) using Nexus OSS and reusing its dependency images
[英]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.