Re:Launch Your App: Why We Don’t Use Docker (We Don’t Need It)
by VWWHFSfQ on Sunday April 25, 2021 @05:20PM
(#26936791)
what kind of php app are you running that requires to be linked against a specific linux kernel
[ Parent
| on HN ]
Re:Launch Your App: Why We Don’t Use Docker (We Don’t Need It)
by user3939382 on Sunday April 25, 2021 @05:31PM
(#26936882)
Let's say I integrate with a CLI utility, which comes up. Docker wouldn't work? If the answer is no I think I'd say I understand the theory better. Unless docker is providing some kind of universal kernel API or something?
Re:Launch Your App: Why We Don’t Use Docker (We Don’t Need It)
by dbaggerman on Sunday April 25, 2021 @06:25PM
(#26937303)
In that case you would bundle a copy of the CLI utility into your docker container, with the correct version. This also applies to any system libraries your code might be compiled against. Things like shared libraries or CLI utilities are part of the "operating system", but not part of the "kernel".
This does mean that you end up with multiple copies of the same utilities and libraries on the system - although docker does have a mechanism to avoid duplication between different docker containers. It also means that if you take your docker container and move it over to a different system with a newer operating system (or a different distribution) all the parts of the operating system it cares about come with it.
The Linux kernel - the part that gets shared between containers - is mostly just responsible for process and memory management, networking and interacting with the computer hardware.