How critical is dumb-init for Docker?

前端 未结 1 986
别跟我提以往
别跟我提以往 2020-12-14 05:51

I hope that this question will not be marked as primarily opinion-based, but that there is an objective answer to it.

I have read Introducing d

相关标签:
1条回答
  • Something like dumb-init or tini can be used if you have a process that spawns new processes and you doesn't have good signal handlers implemented to catch child signals and stop your child if your process should be stopped etc.

    If your process doesn't spawn new processes (e.g., Node.js) then this may not be necessary.

    I guess that MongoDB, PostgreSQL, ... which may run child processes have good signal handlers implemented. Otherwise there would have been zombie processes and someone had filed an issue to fix this.

    Only problem may be the official language images, like node, ruby, golang. They don't have dumb-init/tini in it as you normally don't need them. But it's up to the developer which may implement bad child execution code to either fix the signal handlers or use helper as PID 1.

    0 讨论(0)
提交回复
热议问题