当我停止Docker撰写时,Kibana失去指数

发布于 2025-02-09 15:31:30 字数 150 浏览 2 评论 0原文

我有Elasticsearch:7.17和Kibana:7.17使用Docker撰写 索引将使用filebeat发送到elasticsearch

当我在终端上运行此命令时,

:docker-compose我失去了我在kibana中创建的所有索引和索引模式

i have elasticsearch:7.17 and kibana:7.17 installed Using docker compose
indices are sent to elasticsearch Using filebeat

When i run This command on my terminal : docker-compose down

i lose all indices and index pattern That ive Created in kibana

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

维持三分热 2025-02-16 15:31:30

所以我认为您不使用卷?
为了持久数据,您需要告诉Docker使用

您可以在 docker docs 或在弹性文档

...
services:
  es01:
    volumes:
     - path_on_your_machine:path_in_container:read_write_access
...

So I assume that you are not using volumes?
In order to persist data, you need to tell docker to use a volume as seen in the documentation.

You can add a volume to a compose file as seen in the docker docs, or here in the elastic docs:

...
services:
  es01:
    volumes:
     - path_on_your_machine:path_in_container:read_write_access
...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文