From bed6e748cb994bfa91a7b8899c9e286dad407382 Mon Sep 17 00:00:00 2001 From: mrmcpat <109171317+mrdoggopat@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:38:22 -0500 Subject: [PATCH] Add necessary /opt/datadog-agent/run bind mount for Docker log collection This is needed to prevent the agent from reingesting logs when it restarts. --- content/en/containers/guide/compose-and-the-datadog-agent.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/containers/guide/compose-and-the-datadog-agent.md b/content/en/containers/guide/compose-and-the-datadog-agent.md index 608999d9a25d2..e05e82658db13 100644 --- a/content/en/containers/guide/compose-and-the-datadog-agent.md +++ b/content/en/containers/guide/compose-and-the-datadog-agent.md @@ -158,6 +158,7 @@ services: - /proc/:/host/proc/:ro - /sys/fs/cgroup:/host/sys/fs/cgroup:ro - /var/lib/docker/containers:/var/lib/docker/containers:ro + - /opt/datadog-agent/run:/opt/datadog-agent/run:rw ``` **Note**: This configuration collects only logs from the `Redis` container. You can collect logs from the Datadog Agent by adding a similar `com.datadoghq.ad.logs` label. You can also explicitly enable logs collection for all containers by setting the environment variable `DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL` to `true`. See [Docker log collection][5] for details.