"Node" user inside container can't write to docker volume in custom location #277

Closed
opened 2026-02-04 18:20:08 +03:00 by OVERLORD · 2 comments
Owner

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

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
Author
Owner

@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

@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
Author
Owner

@2nOrderEDO commented on GitHub (Jan 14, 2023):

That works, thanks. Sorry for my inexperience hehe

@2nOrderEDO commented on GitHub (Jan 14, 2023): That works, thanks. Sorry for my inexperience hehe
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#277