4 ms·
I'd be curious to see services designed to run as PID 1 inside containers, and contain or run nothing else other than the required binaries. Maybe someone is do
by johbjo 5y ago
I'd be curious to see services designed to run as PID 1 inside containers, and contain or run nothing else other than the required binaries. Maybe someone is doing this.
- onei 5y agoPretty sure this is what tini[1] is for, and there's supervisord[2] for more complex use cases, e.g. running multiple processes. Neither are a full replacement for traditional systemd, which I heard you can technically run in a container these days, but I've never seen anyone try. [1] https://github.com/krallin/tini https://github.com/krallin/tini [2] https://github.com/Supervisor/supervisor https://github.com/Supervisor/supervisor
- antonvs 5y agoIt's pretty common for languages that compile to binaries. Golang, for example. Just inherit your container "FROM scratch". I have a number of service containers that are around 8 - 12MB, which contain compiled Haskell binaries.
- nijave 5y agoRelated, https://github.com/GoogleContainerTools/distroless https://github.com/GoogleContainerTools/distroless