From 9c05e6f172ed48fceb13d02a28ca20bb7e7037b1 Mon Sep 17 00:00:00 2001 From: Stef Nestor Date: Mon, 13 Sep 2021 10:11:35 -0600 Subject: [PATCH] [DOC] Update Persist Keystore via Docker (#110917) From feedback from ES Devs summarized in [this Elastic Discuss](https://discuss.elastic.co/t/persist-elasticsearch-kibana-keystores-with-docker/283099), Adding to [this doc section](https://www.elastic.co/guide/en/kibana/7.14/docker.html#bind-mount-config) information on persisting keystores. [ES related PR](https://github.com/elastic/elasticsearch/pull/77155) Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com> --- docs/setup/docker.asciidoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/setup/docker.asciidoc b/docs/setup/docker.asciidoc index 9b285103793b..6e56f6878140 100644 --- a/docs/setup/docker.asciidoc +++ b/docs/setup/docker.asciidoc @@ -93,6 +93,16 @@ services: - ./kibana.yml:/usr/share/kibana/config/kibana.yml -------------------------------------------- +==== Persist the {kib} keystore + +By default, {kib] auto-generates a keystore file for secure settings at startup. To persist your {kibana-ref}/secure-settings.html[secure settings], use the `kibana-keystore` utility to bind-mount the parent directory of the keystore to the container. For example: + +[source,sh] +---- +docker run -it --rm -v full_path_to/config:/usr/share/kibana/config -v full_path_to/data:/usr/share/kibana/data docker.elastic.co/kibana/kibana:7.14.0 bin/kibana-keystore create +docker run -it --rm -v full_path_to/config:/usr/share/kibana/config -v full_path_to/data:/usr/share/kibana/data docker.elastic.co/kibana/kibana:7.14.0 bin/kibana-keystore add test_keystore_setting +---- + [float] [[environment-variable-config]] ==== Environment variable configuration