【Nexus(docker)】login attempt to http://xxx/v2/ failed with status: 401 Unauthorized

After using docker to start the Nexus service, you can log in to the webpage. After creating the warehouse, I want to use the command line to docker login -u admin xx.xxx.xxx.xx:xxxxlog in, but when I log in, I find an error

Error response from daemon: login attempt to http://xxx.xxx.xxx.xxx:xxxx/v2/ failed with status: 401 Unauthorized

Can confirm that the password is not entered incorrectly.
Later, I found this article
Insert image description here
in the community. The problem is that we did not enable docker bearer token
. Enter the settings, click Realms, search for docker bearer token in Available, and then add it to Active.
Insert image description here
Then it's ok
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_45654405/article/details/126878742
Recommended