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