【nexus3】 Sonatype Nexus: docker login 401 Unauthorized

【nexus3】 Sonatype Nexus: docker login 401 Unauthorized

一、命令登录nexus3报错

命令: docker login -u admin -p password ip:5000
报错: Error response from daemon: login attempt to http://ip:5000/v2/ failed with status: 401 Unauthorized

在这里插入图片描述

HTTP401错误代表用户没有访问权限,需要进行身份认证。

与这个错误一同返回的还有认证使用的方式(Basic或者Digest)和认证时使用的字段(realm)名称。

二、可能原因

  1. 用户、密码错误

  2. nexus版本问题
    我用的是版本是3.28.0-01,需要在web管理端设置权限。
    在这里插入图片描述

重新登录登录成功
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42170236/article/details/108994123