Skip to content

Commit f1f6be2

Browse files
committed
Describe how to add a plugin in Dockerfile (#31340)
When installing a plugin, people need to add the `--batch` option. It's better to document it as it could be a common use case. Backport of #31340 in 6.3 branch
1 parent 1f43ff7 commit f1f6be2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/setup/install/docker.asciidoc

+7
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ docker build --tag=elasticsearch-custom .
279279
docker run -ti -v /usr/share/elasticsearch/data elasticsearch-custom
280280
--------------------------------------------
281281

282+
Some plugins require additional security permissions. You have to explicitly accept
283+
them either by attaching a `tty` when you run the Docker image and accepting yes at
284+
the prompts, or inspecting the security permissions separately and if you are
285+
comfortable with them adding the `--batch` flag to the plugin install command.
286+
See {plugins}/_other_command_line_parameters.html[Plugin Management documentation]
287+
for more details.
288+
282289
===== D. Override the image's default https://docs.docker.com/engine/reference/run/#cmd-default-command-or-options[CMD]
283290

284291
Options can be passed as command-line options to the {es} process by

0 commit comments

Comments
 (0)