Perl as PID 1 under Docker
tech-blog.cv-library.co.uk
tech-blog.cv-library.co.uk
In the more common path, I rarely have containers which don't more easily share 1 or 2 tightly coupled support containers (and in general I prefer having `docker run` just work, rather then turn into an affair with docker compose).
What is meant by "the happy path"? I've seen this reference a couple of time now but have not found a clear explanation.
> Only signals for which the "init" process has established a signal handler can be sent to the "init" process by other members of the PID namespace. This restriction applies even to privileged processes, and prevents other members of the PID namespace from accidentally killing the "init" process.
> Likewise, a process in an ancestor namespace can—subject to the usual permission checks described in kill(2)—send signals to the "init" process of a child PID namespace only if the "init" process has established a handler for that signal.
Source: `docker pull jbergstroem/mariadb-alpine`
edit: docker should really open the doors for a cleanup/shutdown phase. There's both entrypoint and cmd but not a "exit" command.
# Run with care...
$ sudo docker run -it docker.io/ubuntu:14.04 /bin/bash -c 'trap x EXIT; x() { echo exit; }; while sleep 1; do echo sleep; done'
^C
[bash enter in infinite loop]
I'm asking because my Fedora 25 install does not include docker 1.13 yet.
[0] https://docs.docker.com/engine/installation/linux/docker-ce/...