3 ms·
I have an old PHP+C app which only runs on ubuntu 1804 and below And another which requires 2004 plus They both require physical access to the same hardware.
by iso1631 4y ago
I have an old PHP+C app which only runs on ubuntu 1804 and below
And another which requires 2004 plus
They both require physical access to the same hardware. I want them to coexist on the same physical machine (I can't add a second as I'm space and power constrained), and switch between them trivially and quickly.
Now I haven't actually done this yet, but my feeling is I can dockerise it, push the dev files through, and run one image or another depending on what I need in a given hour.
- rlpb 4y agoYou can also do that with lxd, which will just give you nested Ubuntu and doesn't require the huge paradigm shift that Docker imposes.
- iso1631 4y agoSure I could, I assume. But there's no paradigm shift about a script doing "docker run". Or am I missing something?
- rlpb 4y agoBy default something running inside Docker is immutable and doesn't run standard system utilities. You have to make arrangements for logging, data persistence, daemon auto-restart, and so forth. It can all be done, but the necessity to do all of this differently is what I mean by paradigm shift.