docs: add note about using ``--init` when not running with `pid: host` (#21075)
Ilya Mashchenko committed
Sep 30, 2025 at 19:53 UTC
506fab343fe4749bed8d9a569b5e2fcd27e9d4c4
1 file changed
+6
packaging/docker/README.md
+6
@@ -50,6 +50,12 @@ Both methods create a [volume](https://docs.docker.com/storage/volumes/) for Net
50
_within the container_ at `/etc/netdata`.
51
See the [configure section](#configure-agent-containers) for details. If you want to access the configuration files from your _host_ machine, see [host-editable configuration](#with-host-editable-configuration).
52
53
+:::info If you remove `pid: host`
54
+If you choose **not** to use `pid: host`, you **must** add [`--init`](https://docs.docker.com/reference/cli/docker/container/run/#init) (or [`init: true`](https://docs.docker.com/reference/compose-file/services/#init) in Compose).
55
+
56
+`--init` installs a minimal init system that reaps processes and ensures stable container operation.
57
+:::
58
+
59
<Tabs>
60
<TabItem value="docker_run" label="docker run">
61