From fc07655d68311c19155c2b36a68b29d751b91bc0 Mon Sep 17 00:00:00 2001 From: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com> Date: Mon, 7 Oct 2024 09:57:33 -0400 Subject: [PATCH] Fix read-only instructions for running Beats on Docker (#41120) * Fix read-only instructions for running Beats on Docker * Fix up command (cherry picked from commit b7d7feced818f999192cf57afa38ec53e39c3456) --- libbeat/docs/shared-docker.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libbeat/docs/shared-docker.asciidoc b/libbeat/docs/shared-docker.asciidoc index 7df2bc1e940f..2b4d7e458219 100644 --- a/libbeat/docs/shared-docker.asciidoc +++ b/libbeat/docs/shared-docker.asciidoc @@ -149,9 +149,9 @@ For example: ["source", "sh", subs="attributes"] -------------------------------------------- -docker run \ - --mount type=source=$(pwd}/data,destination=/usr/share/{beatname_lc}/data - --read-only +docker run --rm \ + --mount type=bind,source=$(pwd)/data,destination=/usr/share/{beatname_lc}/data \ + --read-only \ {dockerimage} --------------------------------------------