R
Railway9mo 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
Percy9mo ago
Project ID: N/A
aaron
aaron9mo ago
N/A
Brody
Brody9mo ago
volumes are mounted as root, so switch to the root user in your dockerfile USER 0
aaron
aaron9mo ago
Is there anything in the roadmap to allow permissions to be set on volumes?
Brody
Brody9mo ago
not that I know of