Neo4j database is not retaining the data

I have neo4j database started up as a process inside a container using an Entry point as "bin/neo4j console".
I see that, the data thats stored in the previous iteration is not stored after restart.
I see the process as below in the container.
" /jdk/bin/java -cp /var/lib/neo4j/plugins:/var/lib/neo4j/conf:/var/lib/neo4j/lib/:/var/lib/neo4j/plugins/ -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+UnlockExperim"

Is there anything I am missing or doing wrongly?
Why is the database not retaining the data.

Are you referring to a docker container? If so, you need to use a volume to persist the data between restarts. I found this documentation helpful.


Can you please inspect the logs more carefully and paste the stack trace.
Please check memory configuration to see if it is apt.

Many thanks
Mr Sameer G

Thank you @glilienfield
After adding the volume as data-0:/var/lib/neo4j/data, the data started retaining properly.