How to run a insecure-registry

There was a discussion 232 about how to set up an insecure registry with docker for mac. It was closed before I could comment on how to do it correctly.

This seems like the correct way to set this up please correct me if I’m wrong.

First I created a new file with the output of the current daemon.json file

$ pinata get daemon > myconfig.json
Then I added another rule to the json

{“storage-driver”:“aufs”,“debug”:true,“insecure-registries”:[“your.insecure.registry”]}
Finally I set the new config

$ pinata set daemon @myconfig.json
The daemon restarted and I was able to pull from my registry.