https://prefect.io logo
Title
a

Anat Tal Gagnon

08/30/2022, 4:17 AM
Hi, I'm running a flow run that downloads a file to local file system within docker container and getting [Errno 13] Permission denied. is there best practice to bypass this?
✅ 1
c

Chris L.

08/30/2022, 4:19 AM
You will need to use
RUN chmod (read and write permissions)
or
RUN chown
to grant read and write permissions for the directory where you are using copied your flows (for whatever USER your image is using)
:gratitude-thank-you: 1
The best practice here is just making sure your file permissions are fine grained and only includes the flow files.
Also standard Docker best practices applies for USER: i.e. don't use ROOT
a

Anat Tal Gagnon

08/30/2022, 4:26 AM
which user is running the flow?
c

Chris L.

08/30/2022, 4:28 AM
👋 @Anat Tal Gagnon would you be willing to share the Dockefile you are using?
I’ll be able to help out with your question directly from that
a

Anat Tal Gagnon

08/30/2022, 8:22 AM
resolved with chmod, I still have problems though will open another thread
🙌 2