# Docker login issue 404

**URL:** <https://community.sonatype.com/t/docker-login-issue-404/4697>\
**Category:** Sonatype Nexus Repository\
**Created:** [July 29, 2020, 9:48pm UTC](https://community.sonatype.com/t/docker-login-issue-404/4697 "2020-07-29T21:48:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan.seo](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@dan.seo](https://community.sonatype.com/u/dan.seo)\
**Post date:** [July 29, 2020, 9:48pm UTC](https://community.sonatype.com/t/docker-login-issue-404/4697/1 "2020-07-29T21:48:56Z")

</div>

Hello,  
i have installed latest nexus docker image on kubernetes with ingress  
i can login thru nexus console fine.

when i do docker login mynexus-fqdn:ingress-port -u admin

i get Error response from daemon: login attempt to [https://mynexus-fqdn/v2/](https://mynexus-fqdn/v2/) failed with status: 404 Not Found

has anyone seen this issue?

---

<div class="post-metadata">

**Author:** ![bollo](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/bollo/32/1702_2.png) [@bollo](https://community.sonatype.com/u/bollo)\
**Post date:** [January 15, 2022, 1:20am UTC](https://community.sonatype.com/t/docker-login-issue-404/4697/3 "2022-01-15T01:20:43Z")

</div>

I was able to fix it by explicitly setting my context path in nexus.properties. The issue was the connector was creating the wrong internal URL and could not find the repository.  
nexus-context-path=/

---

<div class="post-metadata">

**Author:** ![amitkd.niit](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@amitkd.niit](https://community.sonatype.com/u/amitkd.niit)\
**Post date:** [February 22, 2023, 2:02pm UTC](https://community.sonatype.com/t/docker-login-issue-404/4697/4 "2023-02-22T14:02:38Z")

</div>

Hey, i am facing the same issue. what should i set the context path ?

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [February 22, 2023, 2:25pm UTC](https://community.sonatype.com/t/docker-login-issue-404/4697/5 "2023-02-22T14:25:31Z")

</div>

If you’re having issues with docker login, docker does not function with a non-root path. So you need to make sure you use the HTTP(S) connectors or the Nexus Pro subdomain feature for the docker repositories, and configure your system to use those.

---

<div class="post-metadata">

**Author:** ![rajeshchellasig](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@rajeshchellasig](https://community.sonatype.com/u/rajeshchellasig)\
**Post date:** [July 25, 2024, 2:43pm UTC](https://community.sonatype.com/t/docker-login-issue-404/4697/6 "2024-07-25T14:43:02Z")

</div>

unable to open or edit the file inside the container

root@rke-master1:/opt/nexus# kubectl exec -it nexus-6b766bbf89-ds5rl -n nexus /bin/bash  
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.  
bash-4.4$ cat /etc/os-release  
NAME=“Red Hat Enterprise Linux”  
VERSION=“8.10 (Ootpa)”  
ID=“rhel”  
ID\_LIKE=“fedora”  
VERSION\_ID=“8.10”  
PLATFORM\_ID=“platform:el8”  
PRETTY\_NAME=“Red Hat Enterprise Linux 8.10 (Ootpa)”  
ANSI\_COLOR=“0;31”  
CPE\_NAME=“cpe:/o:redhat:enterprise\_linux:8::baseos”  
HOME\_URL=“[https://www.redhat.com/](https://www.redhat.com/)”  
DOCUMENTATION\_URL=“[Red Hat Enterprise Linux | Red Hat Product Documentation](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8)”  
BUG\_REPORT\_URL=“[https://issues.redhat.com/](https://issues.redhat.com/)”

REDHAT\_BUGZILLA\_PRODUCT=“Red Hat Enterprise Linux 8”  
REDHAT\_BUGZILLA\_PRODUCT\_VERSION=8.10  
REDHAT\_SUPPORT\_PRODUCT=“Red Hat Enterprise Linux”  
REDHAT\_SUPPORT\_PRODUCT\_VERSION=“8.10”  
bash-4.4$ clear  
bash: clear: command not found  
bash-4.4$ vi  
bash: vi: command not found  
bash-4.4$
