I am running the following to start a zeppelin container:
docker run -dit --name zep -v /notebook:/opt/zeppelin/notebook -p 8080:8080 apache/zeppelin:0.9.0
However I get the error:
java.io.IOException: Creating directories for /opt/zeppelin/notebook/.git failed
java.lang.IllegalStateException: Unable to perform operation: create on org.apache.zeppelin.notebook.repo.NotebookRepoSync
I only get this error with volume mapping. Has anyone experienced this issue?
Now it has write permission because it starts with root user inside the container. Try to avoid that especially when the image has a non-root user by default. Setting permissions is just one command on the host.
Thanks again! I originally thought the issue is not having permission to write within the container, but now I understand that the zeppelin user is trying to write in the host folder. Another solution that I tried is creating the directory first with the 1000 user on the host before running the command, this worked as well!