It looks like no data is saved to /data but instead everything is written in /var/lib/jetty/bigdata.jnl.
I tried to mount ./data/blazegraph:/var/lib/jetty instead but it fails as it turns /var/lib/jetty in an empty directory.
What did work was to mount the sole bigdata.jnl after having created it (to avoid letting docker create it as a directory) and set the file uid and gid to jetty user and group in the container, that is 100.
mkdir -p ./data/blazegraph
touch ./data/blazegraph/bigdata.jnl
sudo chown 100:100 ./data/blazegraph/bigdata.jnl
then --volume ./data/blazegraph/bigdata.jnl:/var/lib/jetty/bigdata.jnl successfully persist the data
It looks like no data is saved to
/databut instead everything is written in/var/lib/jetty/bigdata.jnl.I tried to mount
./data/blazegraph:/var/lib/jettyinstead but it fails as it turns/var/lib/jettyin an empty directory.What did work was to mount the sole
bigdata.jnlafter having created it (to avoid letting docker create it as a directory) and set the fileuidandgidtojettyuser and group in the container, that is100.then
--volume ./data/blazegraph/bigdata.jnl:/var/lib/jetty/bigdata.jnlsuccessfully persist the data