# Docker login 401 Unauthorized only on hosted and proxy registry

**URL:** <https://community.sonatype.com/t/docker-login-401-unauthorized-only-on-hosted-and-proxy-registry/14973>\
**Category:** Sonatype Nexus Repository\
**Tags:** docker, nexus-repository\
**Created:** [May 19, 2025, 7:21am UTC](https://community.sonatype.com/t/docker-login-401-unauthorized-only-on-hosted-and-proxy-registry/14973 "2025-05-19T07:21:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nguyen\_phu](https://avatars.discourse-cdn.com/v4/letter/n/c0e974/32.png) [@nguyen\_phu](https://community.sonatype.com/u/nguyen_phu)\
**Post date:** [May 19, 2025, 7:21am UTC](https://community.sonatype.com/t/docker-login-401-unauthorized-only-on-hosted-and-proxy-registry/14973/1 "2025-05-19T07:21:59Z")

</div>

Hello ,

I am using nexus as a Docker container.

For my case, I create a blog-store and create three docker registry repository, one hosted and one group. I try to log in on group and it works fine. But when I tried to connect into the proxy and hosted repository I get 401 Unauthorized.

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