R
Railway11mo ago
aaron

Is it possible to set permissions on volumes?

Dockerfile is using user id of 1000,and the WORKDIR which they own is /app. A Volume is mounted at /media The application gets permission denied when trying to write to /media. Is there any way to set do 1000:1000 -R on the volume to match the Dockerfile user? Or can you suggest an alternative workaround?
5 Replies
Percy
Percy11mo ago
Project ID: N/A
aaron
aaron11mo ago
N/A
Brody
Brody11mo ago
volumes are mounted as root, so switch to the root user in your dockerfile USER 0
aaron
aaron11mo ago
Is there anything in the roadmap to allow permissions to be set on volumes?
Brody
Brody11mo ago
not that I know of