I wanted to put the question and its resolution here as I encountered this issue while pulling an image from a private Nexus repository and I wasn't able to find a clear solution.
Issue:
I have an access to a private Nexus repository which I was able to validate but going to the Nexus repo portal and signing into it. I have installed Docker on my mac and try to pull an image from the above Nexus repo portal.
Something like the below (where redis-dev1 is the image name in the repo)
docker pull nexusrepo.domain.com:8343/redis-dev1
When I do that : I get the following error:
Error response from daemon: Get https://nexusrepo.domain.com:8343/redis-dev1/manifests/1:
no basic auth credentials