mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
"Node" user inside container can't write to docker volume in custom location #277
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @2nOrderEDO on GitHub (Jan 14, 2023).
Hello there,
I installed Planka today using the example docker-compose file from the github page. I changed the location of the volumes to /mnt/storage/planka/ + already designed volume name. My intention is to mount the volumes to a HDD with more space.
After doing this, the container runs and I can access the webpage, etc. But it is impossible to upload attachments or change the backgrounds. Basically, any task involving writing files to the volumes is blocked. I checked permissions of the folders, etc and planka complains with the message:
EACCES: permission denied, mkdir '/app/private/attachments/3253edbf-1250-40f9-938c-44cba70c73a4'
Inside the docker container, the user "node" is running, but is not possible to give permissions to this user over my disk in /mnt/storage because it doesn't exist on the host machine.
Some users have solved the problem by giving permissions 777 to this volumes from the host, but this is insecure and it doesn't feel right.
Any ideas how to solve it? mybe changing this "node" user?
Kind regards,
2nOrderEDO
@daniel-hiller commented on GitHub (Jan 14, 2023):
Hi,
inside the container, node is running with uuid 1000 and guid 1000.
you can easily chown the files to these id's.
chown -R 1000:1000 /mnt/storage/planka/
Greetings
Daniel
@2nOrderEDO commented on GitHub (Jan 14, 2023):
That works, thanks. Sorry for my inexperience hehe