I have an app where I need to write files to the file system, like:
os.makedirs(work_dir)
Is that possible? I tried with a docker image but I got a PermissionError: [Errno 13] Permission denied
in that line. Any way to overcome that?
I have an app where I need to write files to the file system, like:
os.makedirs(work_dir)
Is that possible? I tried with a docker image but I got a PermissionError: [Errno 13] Permission denied
in that line. Any way to overcome that?
I think you can basically access the directory under /home/user/
(or possibly /home/
?) using that method. There is no way to access a path higher up…
(This also causes an error in Dockerfile
’s WORKDIR
, etc.)
That was the reason! I needed to create an user and work in the user folder. The steps to follow are explained here.
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.