I’m unable to pull or push to a private repository I have set up for a project but only with the Docker for Mac client. If I use a Linux VM and connect I don’t have any problems.
I have a private registry running on a server and is secured with SSH certs. I connect to it via an SSH tunnel and forward the port to localhost. On the Docker settings I added localhost:55000 as an insecure registry and restarted Docker but when I try to do a pull I get a connection refused message.
If I follow the same steps of tunneling to the server on my vm and use the same cert for authentication it works and I can push and pull with no issues.
Is there some other configuration needed to have Docker on the Mac use the SSH key that was provided?
ssh -fN -L 55000:localhost:5000 myrepo
docker pull localhost:55000/my-ubuntu
Error response from daemon: Get http://localhost:55000/v2/: dial tcp [::1]:55000: getsockopt: connection refused
Docker for Mac Version 17.12.0-ce-mac49 (21995)
Mac HighSierra 10.13.2