I am facing the following issue.
I have a harbor private registry and i am trying to login through docker cli.
I am able to login successfully with: docker login <harbor_ip>
. When i execute this command the cli is asking me for username and password and it logins successfully.
But when i try to login with the following command docker login -u <username> -p <password> <harbor_ip>
i get the following error:
unauthorized: authentication required
Bear in mind i am using the same credentials.
Why this is happening?