Docker login issue 404

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/ failed with status: 404 Not Found

has anyone seen this issue?

1 Like

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=/

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

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.

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/
DOCUMENTATION_URL=“Red Hat Enterprise Linux | Red Hat Product Documentation
BUG_REPORT_URL=“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$