csdn/CSDN博文备份/NexusDocker推送提示授权错误-146636445.md
2025-03-29 02:20:41 +08:00

1 line
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>推送 Docker Image 到 Nexus 上的提示错误:</p> <br><p></p> <br><pre><code>Unable to push 'zchub-policy-data-service:0.0.1-SNAPSHOT' to registry 'repo-docker.isharkfly.com' : unauthorized: access to the requested resource is not authorized<br></code></pre> <br><p></p> <br><p><a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/4/8/48361d98cbe2fd3c3c8ad29ad2a2715faa7e6e17.jpeg" rel="nofollow"><img alt="2025-03-28_13-54-12" height="292" src="https://i-blog.csdnimg.cn/img_convert/daabe32cf7a55562614758c971ba16a5.jpeg" width="690" /></a></p> <br><p></p> <br><h3>问题解决</h3> <br><p>Nexus 需要对能够访问 Docker 仓库的用户授权。</p> <br><p>至少要赋予下面 3 个权限才行。</p> <br><p></p> <br><p><a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/c/3/c3435fb6addd632ca7264e6a3af0b766f9588049.jpeg" rel="nofollow"><img alt="2025-03-28_14-10-08" height="500" src="https://i-blog.csdnimg.cn/img_convert/238fd68a92ce0d81e70ea7989506af45.jpeg" width="680" /></a></p> <br><p>赋权后不需要重启 Nexus可以直接进行重构。</p> <br><p></p> <br><p><a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/9/e/9e714b934e0b6fcaafefa566f64452f3bbd5d763.jpeg" rel="nofollow"><img alt="2025-03-28_14-08-25" height="500" src="https://i-blog.csdnimg.cn/img_convert/8be0981658690b921cc53c922d0acf15.jpeg" width="597" /></a></p> <br><p></p> <br><p></p> <br><p>如果能看到镜像上传成功则说明一切正常。</p> <br><p></p> <br><p><a href="https://www.isharkfly.com/t/nexus-docker/17105" rel="nofollow" title="https://www.isharkfly.com/t/nexus-docker/17105">https://www.isharkfly.com/t/nexus-docker/17105</a><a href="https://www.isharkfly.com/t/nexus-docker/17105" rel="nofollow" title="https://www.isharkfly.com/t/nexus-docker/17105"></a></p>