Outils pour utilisateurs

Outils du site


tech:docker_image_build

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:docker_image_build [2025/10/09 21:35] Jean-Baptistetech:docker_image_build [2025/10/09 21:47] (Version actuelle) Jean-Baptiste
Ligne 56: Ligne 56:
  
  
-== Init process 
  
-* https://cloud.theodo.com/en/blog/docker-processes-container 
-* https://ahmet.im/blog/minimal-init-process-for-containers/ 
-* https://github.com/antontkv/docker-and-pid1 
  
  
Ligne 117: Ligne 113:
  
  
-== pid1 
  
  
- 
-Something like dumb-init or tini can be used if you have a process that spawns new processes and you don'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 would have 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. 
- 
-Source : https://stackoverflow.com/questions/37374310/how-critical-is-dumb-init-for-docker 
  
  
tech/docker_image_build.1760038520.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki