4 ms·
You can do this with Docker easily as well docker save <image> | ssh <remote host> docker load
by leetbulb 5y ago
You can do this with Docker easily as well
docker save <image> | ssh <remote host> docker load
- realPubkey 5y agoAlso with docker-compose there is a remote option to deploy local containers via ssh.
- Hasnep 5y agoCould you explain more about this? I can't seem to find anything online about it
- ollien 5y agoHeh - in college I took a network security class that required us to set up our own attack/defend environments, and one of the important parts of the report was to explain to the TAs how to set up our environment. We were able to save ourselves a ton of writing by just exporting docker images like this and giving instructions on how to load those onto the VMs :) Someone else I knew made .deb packages, which might have been smarter, since there were some hosts we didn't containerize (mainly ones that handled routing and such; I know now we might have been able to get away with doing it, but at the time I didn't and I thought it might be too much hassle for an already complicated project)
- ffk 5y agoThank you for mentioning this! I wrote docker save and load, and I’m happy to hear that it helped you!
- matt_kantor 5y agoAs a step beyond that, I use this script: https://github.com/mkantor/docker-pushmi-pullyu https://github.com/mkantor/docker-pushmi-pullyu `docker save` archives the entire (often huge) image. `docker-pushmi-pullyu` uses an ephemeral registry as an intermediary, so it only needs to transfer layers that have changed. It saves me a lot of time.
- mst 5y agoHeh, the last time I saw something called pushmi/pullyu it was clkao's svn repo sync stuff. Is that where you got the names from or somewhere else? (the blast-from-the-past aspect of seeing those names again has got me wondering about the etymology in general :)
- matt_kantor 5y agoIt's a creature from Doctor Dolittle: https://en.wikipedia.org/wiki/List_of_Doctor_Dolittle_characters#Pushmi-Pullyu https://en.wikipedia.org/wiki/List_of_Doctor_Dolittle_charac...
- mst 5y agoAha! Thank you.