Skip to content

Commit 6cef805

Browse files
KOTungsethstefnestorgchaps
authored
[DOC] Update Persist Keystore via Docker (#110917) (#112297)
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](elastic/elasticsearch#77155) Co-authored-by: gchaps <[email protected]> Co-authored-by: Stef Nestor <[email protected]> Co-authored-by: gchaps <[email protected]>
1 parent 5cc3560 commit 6cef805

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/setup/docker.asciidoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ services:
9393
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
9494
--------------------------------------------
9595

96+
==== Persist the {kib} keystore
97+
98+
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:
99+
100+
[source,sh]
101+
----
102+
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
103+
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
104+
----
105+
96106
[float]
97107
[[environment-variable-config]]
98108
==== Environment variable configuration

0 commit comments

Comments
 (0)