-
Hi When I launch your Docker image with a volume to map the JanusGraph data directory on my computer (the directory on my computer don't exist yet) I obtain this result and the storage is not initialized correctly
The only workaround I found is to create/modify manually the directory before the Docker command with the good permissions (uid/gid = 999). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
What you describe sounds exactly like what a user described here on Stack Overflow in general for mounting a volume into a docker container where the host path doesn't exist yet: https://stackoverflow.com/questions/44574078/mount-non-existing-host-directory-into-non-root-container The JanusGraph container runs as user |
Beta Was this translation helpful? Give feedback.
-
Hi thanks for your anwser. |
Beta Was this translation helpful? Give feedback.
Hi thanks for your anwser.
I have just found a workaround for my need. I write my own Dockerfile which reference your image and install gosu. Finally in the docker-entrypoint.sh I replace your last line
exec "$@"
byexec /usr/local/bin/gosu janusgraph "$@"
. It works well and it creates a directory in case it doesn't exists with the right permissions.Hope that it helps other users.
Thanks for your job and the janusgraph-docker project.
Best regards.