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:xxxx
log 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
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.
Then it's ok