Outils pour utilisateurs

Outils du site


tech:notes_pid1_conteneurs

Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:notes_pid1_conteneurs [2025/10/09 21:46] – créée Jean-Baptistetech:notes_pid1_conteneurs [2025/10/15 18:36] (Version actuelle) Jean-Baptiste
Ligne 6: Ligne 6:
 ## Généralités ## Généralités
  
-Voir : +Voir aussi : 
-* https://blog.saintmalik.me/dumb-init/+* [[Debian-systemd]] 
 + 
 +Design - supervision system vs service manager vs system manager - “hard” and “soft” dependencies. 
 +* https://davmac.wordpress.com/2018/10/26/on-the-vagaries-of-init-systems/ 
 +* init system and service manager https://chimera-linux.org/docs/faq#what-is-the-projects-take-on-systemd 
 + 
 +Init process : 
 +* https://wiki.gentoo.org/wiki/Comparison_of_init_systems 
 +* https://github.com/davmac314/dinit/blob/master/doc/COMPARISON 
 + 
 +Init process pour les conteners : 
 +* 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 
 + 
 +L'entrypoint devrait être un init tel que "catatonit"
  
 +~~~
 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. 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.
  
Ligne 16: Ligne 32:
  
 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. 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 Source : https://stackoverflow.com/questions/37374310/how-critical-is-dumb-init-for-docker
Ligne 23: Ligne 40:
 ## Sans gestion de services ## Sans gestion de services
  
-runit (fonctionnalités de base incluse dans Busybox) https://wiki.archlinux.org/title/Runit +Voir : 
-* SystemD +  <https://blog.saintmalik.me/dumb-init/>
-* S6+
  
 +Voir :
 +  * tini
 +  * dumb-init
 +  * catatonit (recommandé), utilisé par Podman - inspiré de tini et de dumb-init
 +  * pid1 (paquet pid1) <https://github.com/fpco/pid1>
  
  
-## Avec gestion de services+## Avec gestion de services 
 + 
 +Voir : 
 +  * [[Notes dinit]] 
 +  * [[Notes Supervisor]] 
 +  * runit - fonctionnalités de base incluse dans Busybox - https://wiki.archlinux.org/title/Runit 
 +  * S6 
 +  * SystemD
  
-* tini / dumb-init / catatonit 
-* pid1 (paquet **pid1**) https://github.com/fpco/pid1 
  
 ## Pas classé ## Pas classé
  
-* [[https://github.com/phusion/baseimage-docker/blob/master/image/bin/my_init|my_init]]+Voir : 
 +  * [my_init](https://github.com/phusion/baseimage-docker/blob/master/image/bin/my_init
 + 
tech/notes_pid1_conteneurs.1760039178.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki