I’m running Tigergraph Developer Edition through Docker on a Windows machine. Loading the schema and data works as expected, but the graph doesn’t appear to persist on disk after shutting down the machine.
I may be missing something obvious, but how do I save the graph so that I can pick up where I left off when I restart the machine? I realize that Developer Edition only supports one graph, but do I have to reload it every time? Thanks.
After the 1st time you run the
docker run -i -t --name tigergraph -p 4142:14240 tigergraph:2.2.3
command to start TigerGraph, docker actually created a container for you. So all the changes you made to the container (like create schema, load data, install query, etc) will be persisted into the container.
After you shutdown either this docker container, docker itself or your host machine, you can restart the container, which preserves the changes you made.
Fist, you can use
docker container ls -all
command to list all the containers you have created, something like this:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
40dc64d7fa89 tigergraph:2.2.3 “/bin/sh -c 'cd /hom…” 26 minutes ago Exited (249) 3 seconds ago tigergraph
Then, use the following command to start the container:
docker container start 40dc64d7fa89
where the last argument is the container id.
Then, you should see your previous schema, loaded data and installed queries there.
If you have any questions, please don’t hesitate to follow up.