-
Notifications
You must be signed in to change notification settings - Fork 17
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
collectstatic permissions issue #101
Comments
Hi @mfoulds! I think this kind of problem is typically addressed by adding your user to the Have you tried something like Note that this may have security implications. A more modern and possibly more secure solution may be to run the daemon in rootless mode - see this article: https://docs.docker.com/engine/security/rootless/ |
Either way I'm fairly sure there's nothing |
Thanks @lemonsaurus. I'll try adding the user to the docker group and will definitely check out rootless mode. In the meantime, I found that changing the permission of the specific directory also works:
Either way you're right, it's not to do with the |
TLDR;
I get a permission error when running
collectstatic
. I have a workaround, but wondering if there's a more fundamental fix I can apply?Details
I'm running a dockerised django project. I've installed
django-simple-bulma
and added tosettings
as required.If I run
manage.py collectstatic
as root user, then everything works fine. However when running in development mode as a regular user (I don't have root access inside the development container), I get the error below. Same problem when running on the production VPS server:Inside the container:
Workaround
If I change permissions by running the following as
root
, then everything is ok:Question
But I would prefer not do have to do this. Is there a configuration setting in
django-simple-bulma
that I can change, or something else I can do?The text was updated successfully, but these errors were encountered: