TL;DR Basically, I am looking for this:
docker push myimage ssh://myvps01.vpsprovider.net/
I am failing to grasp the rationale
If you want to push docker images to a given host, there is already everything in Docker to allow this. The following example shows how to push a docker image through ssh:
docker save | ssh -C user@my.remote.host.com docker load
-C
is for ssh to compress the data streamNote that the combination of a docker registry + docker pull
command has the advantage of only downloading missing layers. So if you frequently update a docker image (adding new layers, or modifying a few last layers) then the docker pull
command would generate less network traffic than pushing complete docker images through ssh.