Re: Re: Raspberry Pi OS (64 bit)
By: Warpslide to pokeswithastick on Wed Jun 10 2020 08:50 am
Can't recommend Docker and containers in general enough though.
Makes it a lot easier doing OS upgrades
I'm a huge fan of docker, and this point is one of the reasons why. Easy backup
and recovery is another. (Data backup + container image = PC shutdown/restart)
I pretty much run everything in containers now, and its not uncommon that if I need to a host, that I "move" my containers to another host, do the update/upgrade and then move them back when I do that other host.
Hub 3 is a container, that I can bounce between 2 of my Pis, if I need to do something to one of them.
I really need to play with docker & wrap my head around it better. I get the concept of a VM, that's easy, but for some reason my head has a hard time with containers.
There are a few things to get your head around, but once you have, they are
pretty easy to work with. The first one to understand is "data" (and to an extent application "configuration") needs to be stored specifically somewhere, because the container itself can be deleted and recreated. When it is, just pair it back up with the data (and configuration), and its like a PC was just rebooted.
My cloud servers and home lab, I run ESXi with 3 linux "docker hosts", configured as a docker swarm. I can then shutdown 1 host (if I need to do something to it), and the containers automatically move to one of the other 2. No change to networking, configuration or anything required - whatever those apps were (normally a LAMP server of some sort), just keep working. When that 1
server is back online, any new containers normally get deployed there first.
...лоеп
... Never let your feet run faster than your shoes.
--- SBBSecho 3.11-Linux
* Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)