Skip to content

Add tini to the telegraf docker image#906

Open
tim-basic-fit wants to merge 1 commit into
influxdata:masterfrom
tim-basic-fit:add-tini-docker
Open

Add tini to the telegraf docker image#906
tim-basic-fit wants to merge 1 commit into
influxdata:masterfrom
tim-basic-fit:add-tini-docker

Conversation

@tim-basic-fit

Copy link
Copy Markdown

An init process will guard against zombie process issues, using tini is the standard approach for containers. This fixes #479.

If the exec plugin is used, it's possible to get a ton of zombie processes if the exec scripts get stuck for whatever reason.

Design decisions:

  • The -g option: Ensures the entire zombie process tree gets killed, far more robust that way
  • Why not use the built-in tini (docker run --init): Not all container runtimes support this, this ensures there's a safe default. --init is not supported in most k8s setups.

@tim-basic-fit tim-basic-fit changed the title Add tini to the telegraf Add tini to the telegraf docker image Jul 20, 2026
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.

[feature] Add tini to Telegraf Docker Image

1 participant