I work with Docker, and I want to set the dyanmic folder, which changes a lot (so I donβt need to do dockers for each execution, which would be too expensive), but I want this folder to be read-only, However, changing the folder owners for someone else works, however chown requires root access, which I would not want to show in the application.
When I use the -v flag for mounting, it gives what the user name gives me, I created a user without root inside the docker image, however, all the files in the volume with the owner as the user who launched the docker are changed to the user I give from the command line, so I canβt only read files and folders. How can I prevent this?
I also added mustafa ALL=(docker) NOPASSWD: /usr/bin/docker , so I can go to another user through the terminal, but still the files have permissions for my user.
docker readonly
Mustafa Oct 03 '13 at 12:06 on 2013-10-03 12:06
source share