【发布时间】: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
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
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
【讨论】: