Nexus Docker 推送提示授权错误

26 阅读1分钟

推送 Docker Image 到 Nexus 上的提示错误:

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

2025-03-28_13-54-12

问题解决

Nexus 需要对能够访问 Docker 仓库的用户授权。

至少要赋予下面 3 个权限才行。

2025-03-28_14-10-08

赋权后不需要重启 Nexus,可以直接进行重构。

2025-03-28_14-08-25

如果能看到镜像上传成功则说明一切正常。

www.isharkfly.com/t/nexus-doc…