Skip to content

fix: add tini as init system to reap zombie processes#339

Open
thisisgm wants to merge 1 commit into
ThePhaseless:mainfrom
thisisgm:fix/add-init-system
Open

fix: add tini as init system to reap zombie processes#339
thisisgm wants to merge 1 commit into
ThePhaseless:mainfrom
thisisgm:fix/add-init-system

Conversation

@thisisgm

@thisisgm thisisgm commented Apr 1, 2026

Copy link
Copy Markdown

Summary

  • Installs tini in the Docker image and uses it as the entrypoint
  • Fixes zombie/defunct Camoufox/Firefox child processes accumulating over time

Context

Python as PID 1 doesn't reap orphaned child processes. This was reported in #241 and the workaround was init: true in compose, but users running docker run directly still hit it. Adding tini to the image fixes it for everyone.

Camoufox/Firefox child processes become defunct when they exit since
Python (PID 1) doesn't reap orphans. Adding tini as the entrypoint
handles this at the image level, removing the need for --init or
init: true in compose.

Ref: ThePhaseless#241
@ThePhaseless

ThePhaseless commented May 4, 2026

Copy link
Copy Markdown
Owner

Hi, for docker run, there is a --init flag i think that does the same thing as init: true, please validate that this works or not and close PR or ping me with results if it won't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants