Is it possible to change the file permissions from a mounted file from inside the docker container? And if yes how do I do that? If I try it with chmod nothing happens. I'm using a Debian container on windows 10.
Here's a picture of what I've tried.
Thanks for the help. :)
Seems like it is not possible based on documentation in here.
When sharing files from Windows, Docker Desktop sets permissions on shared volumes to a default value of 0777 (read, write, execute permissions for user and for group).
The default permissions on shared volumes are not configurable. If you are working with applications that require permissions different from the shared volume defaults at container runtime, you need to either use non-host-mounted volumes or find a way to make the applications work with the default file permissions.
This has been already answered on here.