Docker for Mac (Beta) –insecure-registry flag

I’m currently testing Docker for Mac (closed beta, Version 1.11.1-beta10) and I’m really impressed so far.

If you need to work with an insecure local registry, you need to do the following

// pipe the current config to a file
pinata get daemon > daemon.json

Edit daemon.json and add the insecure registry

{"storage-driver":"aufs","debug":true,"insecure-registries":["10.10.0.1:5000"]}

Load the edited daemon.json

pinata set daemon @daemon.json

The virtual machine used by docker for mac (xhyve) needs to be restart,

pinata restart

Done, you should now be able to pull from your insecure registry.

Leave a reply

Your email address will not be published. Required fields are marked *