R
Railway15mo 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
Percy15mo ago
Project ID: N/A
aaron
aaronOP15mo ago
N/A
Brody
Brody15mo ago
volumes are mounted as root, so switch to the root user in your dockerfile USER 0
aaron
aaronOP15mo ago
Is there anything in the roadmap to allow permissions to be set on volumes?
Brody
Brody15mo ago
not that I know of
Want results from more Discord servers?
Add your server