From 1baa86b09dbb63d52961134bb3488679a5431bb1 Mon Sep 17 00:00:00 2001 From: CodingSpiderFox Date: Wed, 14 Feb 2018 17:42:54 +0100 Subject: [PATCH 1/2] Update running-on-docker.asciidoc -e option was missing See https://discuss.elastic.co/t/running-metricbeat-in-docker-and-monitoring-the-host-system-does-not-work-with-command-from-documentation/119821 --- metricbeat/docs/running-on-docker.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/docs/running-on-docker.asciidoc b/metricbeat/docs/running-on-docker.asciidoc index 8509a560802..9f0ca42e193 100644 --- a/metricbeat/docs/running-on-docker.asciidoc +++ b/metricbeat/docs/running-on-docker.asciidoc @@ -19,7 +19,7 @@ docker run \ --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro \ <2> --volume=/:/hostfs:ro \ <3> --net=host <4> - {dockerimage} -system.hostfs=/hostfs + {dockerimage} -e -system.hostfs=/hostfs ---- <1> Metricbeat's <> collects much of its data through the Linux proc From e495420bf5311bfb4836b0dabfe8120861a557ff Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Wed, 21 Feb 2018 18:29:04 -0500 Subject: [PATCH 2/2] Add missing backslash --- metricbeat/docs/running-on-docker.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricbeat/docs/running-on-docker.asciidoc b/metricbeat/docs/running-on-docker.asciidoc index 9f0ca42e193..1385ffe2616 100644 --- a/metricbeat/docs/running-on-docker.asciidoc +++ b/metricbeat/docs/running-on-docker.asciidoc @@ -18,7 +18,7 @@ docker run \ --volume=/proc:/hostfs/proc:ro \ <1> --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro \ <2> --volume=/:/hostfs:ro \ <3> - --net=host <4> + --net=host \ <4> {dockerimage} -e -system.hostfs=/hostfs ----