Outils pour utilisateurs

Outils du site


blog

Notes PID1 conteneurs

Généralités

Voir ;

Voir aussi :

Design - supervision system vs service manager vs system manager - “hard” and “soft” dependencies.

Init process :

Init process pour les conteners :

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.

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

Sans gestion de services

Voir :

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

Voir :

Pas classé

Voir :

2025/10/09 21:46 · Jean-Baptiste

Notes namespaces unshare mount bind shared

Autres

findmnt -o TARGET,PROPAGATION /opt
 
cat /proc/1/mountinfo

Pb

Err WARN[0001] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
$ podman pull docker.io/hadolint/hadolint
WARN[0001] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers

Solution

sudo mount --make-shared /

FIXME

2025/10/05 01:45 · Jean-Baptiste

Gestion des droits d'accès

Voir :

FIXME

2025/10/02 20:22 · Jean-Baptiste

Architecture et code - bonnes pratiques - design pattern

Voir :

Voir aussi :

Méthode :

  • Principe de substitution de Liskov

FIXME

2025/10/01 20:19 · Jean-Baptiste
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki