Hello; I was wondering how to run my existing on-my-Mac-laptop Nexus installation as a Docker registry.
I am using Nexus 3.3.x and Docker for Mac.
I've added a hosted Docker registry via the Nexus UI. Its host is localhost and its port is 5771.
I've added:
localhost:5771
...to the relevant UI section in my Docker for Mac installation ("Insecure Registries") and applied and restarted the daemon.
When I try to push a repository that looks like this:
localhost:5771/foo/bar
...I get a connection refused error.
When I hit
http://localhost:5771 in my browser, I get a 400 error, so Nexus is indeed answering the phone there.
I suspect the root of my troubles is that "localhost" of course means something different to the docker command line tool than what it means to the Nexus server. However, I'm not sure how to move past this.