dumb-init
wrapper script which proxies signals to a child
Install
- All systems
-
curl cmd.cat/dumb-init.sh
- Debian
-
apt-get install dumb-init
- Ubuntu
-
apt-get install dumb-init
- Alpine
-
apk add dumb-init
- Kali Linux
-
apt-get install dumb-init
- Fedora
-
dnf install dumb-init
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install dumb-init
- Raspbian
-
apt-get install dumb-init
- Dockerfile
- dockerfile.run/dumb-init
- Docker
-
docker run cmd.cat/dumb-init dumb-init
powered by Commando
dumb-init
wrapper script which proxies signals to a child
dumb-init is a simple process supervisor and init system designed to run as PID 1 inside minimal container environments (such as Docker). Lightweight containers have popularized the idea of running a single process or service without normal init systems like systemd or sysvinit. However, omitting an init system often leads to incorrect handling of processes and signals, and can result in problems such as containers which can't be gracefully stopped, or leaking containers which should have been destroyed. dumb-init acts as PID 1 and immediately spawns your command as a child process, taking care to properly handle and forward signals as they are received.