I have the following
and the following
COPY . .
CMD [ "python", "./script/test.py"]
test.py script creates a directory inside the container, with a name that is only known at run time (i.e with timestamp). That directory is created by default with root permissions and it can be accessed from host due to the created volume.
That means in order to access the folder from host, I can only do so as root.
My question is, how can I create a directory with python, inside the docker container, and be able to access it from host without root permission?
The objective is, in the dynamically created directory, there will be files that the user can load on a web app, using the HTML Input Element. This is not possible if the directory or the files in it are root protected.
Source: Docker Questions