harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Returns 401 Unauthorized when 'docker login' to harbor

Open J-Hoplin opened this issue 3 years ago • 0 comments

What can we help you?

Hi! I'm new to harbor and make local environment connection to harbor via HTTP. Like document said in this page I already set insecure-registries in daemon.json. I can make connection via Web Browser with internal-ip but when i login to harbor registry with docker login it returns error message like text below

Error response from daemon: login attempt to ?.?.?.? failed with status: 401 Unauthorized

I already try docker logout and restart docker-compose but these method seems didn't work for me. Is there anyone who knows how to solve this problem? Thank you!

J-Hoplin avatar Aug 08 '22 08:08 J-Hoplin