I recently started with Docker and had some issues related to the permissions.
When I use the docker run command, I specify a directory to be mounted in the container using -v command. Also, I run the container specifying a user which I had created inside the container.
I see that the owner of that mounted folder is root and not the -u user which I specified. This thus does not let me wite anything to the folder (Unless I specify -u root). Is there any workaround for this?