by _3u10 · 4y ago · 0 comments
Of those users 90% are running Debian. So you insert apt install docker into your script. The remaining .4% are using red hat. So you insert yum install docker into your bash script.
Then you add a line to start your image, now put the bash script on your website, voila, single file program that works anywhere.
Most users here using the software may not understand anything about software dev, so they need it to work on a laptop with an external hard drive - no cloud compute or cloud storage (to keep cost low for them) - but it can't have any long lists of commands to get something working.
One command to install and run docker seems to be a decent solution, but the program to do that needs to be accessible from any OS without gaurantee of docker being installed.
Once you have root just do whatever you want. replace the binary, install another version, upgrade the kernel, and then run your app.