Mac: docker registry connection refused

I have just installed Docker Toolbox 1.9.1g on my mac using the pkg installer (after removing a previous docker-machine installed with brew).

I am running a script (from this blog post: ) to create a private registry and push images to it.

However I get this error when trying to put images into the registry:

Put dial tcp connection refused

Any ideas?