
I assume you need to save couchdb-cartridge which has an image id of 7ebc8510bc2c: docker images Where should I set the '-insecure-registry' flag on Mac OS? Run the tool once and it will give you an informative error: Error Pushing Image: Ensure localhost:5000 is added to your insecure registries.

The biggest caveat is that you have to manually add your localhost to Docker's insecure_registries configuration. Oftentimes using an intermediate registry like dockerhub is undesirable, and cumbersome.ĭocker-push-ssh -i ~/my_ssh_key my-docker-image

The benefit of this approach over docker save (at the time of writing most answers are using this method) is that only the new layers are pushed to the server, resulting in a MUCH quicker upload.

It sets up a temporary private Docker registry on the server, establishes an SSH tunnel from your localhost, pushes your image, then cleans up after itself. Docker-push-ssh is a command line utility I created just for this scenario.
