Docker for Mac and insecure registries

If you are using a private registry with a self-signed certificate, and need to connect to it from a macOS laptop, you are likely to incur in the following error:

$ docker-compose up -d
 Pulling search (
 ERROR: Get x509:
 certificate signed by unknown authority

it turns that (a) there is not much of information that is applicable out there and that (b) it is dead easy to fix.

screen-shot-2016-09-12-at-9-20-31-pmSimply click on the menu bar icon and choose Preferences (or hit Cmd-,) and in the Advanced pane, add the full hostname:port for your private registry.

Then Apply & Restart and you’re good to go.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: