【问题标题】:Is data lost when Memgraph that runs on Docker is restarted?Is data lost when Memgraph that runs on Docker is restarted?
【发布时间】:2022-12-27 18:13:17
【问题描述】:

I want to run the Memgprah platform inside Docker (on Windows 10 machine, if it is important). What will happen if I restart my computer or Docker service? Will my data be saved?

【问题讨论】:

    标签: memgraphdb


    【解决方案1】:

    Docker containers don’t persist data by default (all changes are lost when the container is stopped). But here is a way to avoid data loss.

    You need to use local volumes to store the data permanently, which is why Memgraph is started with the -v flag:

    docker run -p 7687:7687 -v mg_lib:/var/lib/memgraph memgraph/memgraph
    

    【讨论】:

      猜你喜欢
      • 2013-10-31
      • 1970-01-01
      • 1970-01-01
      • 2022-12-02
      • 2022-11-20
      • 1970-01-01
      • 2019-09-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多