diff --git a/libbeat/docs/shared-docker.asciidoc b/libbeat/docs/shared-docker.asciidoc index cbaf3935f0d..da5088072b0 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} --------------------------------------------