-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Graphdb as different user then root #5
Comments
I'm currently creating my own Docker image with this simple Dockerfile ( FROM ontotext/graphdb:${tag}
RUN chown -R nobody /opt/graphdb
USER nobody Maybe the |
+1 for this, especially since it's common for people to expose sparql endpoints to the open world. This opens up a direct route to a service in the container with elevated privs |
If you're using services:
graphdb:
image: "ontotext/graphdb:${WHATEVER_VERSION_YOU_USE}"
volumes:
- "./data:/opt/graphdb/home"
user: 2222:2222
# ... ... and chown |
Thank you for the hint, that looks promising. I'll try that. I still think this should be done in the Dockerfile. |
Absolutely. |
Would be nice to have Graphdb running as a different user then root. This is actually docker best practice.
The text was updated successfully, but these errors were encountered: