Docker PID 1

Posted by Kathleen Sharp on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Docker-PID-1-tp12577.html

Hi,

I was playing about with flink using the docker images provided,
however I noticed that the entry point is a bash script.

There is a problem in using bash as the PID1 process in a docker
container as docker sends SIGTERM, but bash doesn't send this to its
child processes.

This means for example that if a container was ever killed and a child
process had a file open then the file may get corrupted.

It's covered in more detail in a blog post here:
https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/

If this is a big enough concern should I raise a jira ticket?

Kat