I use a simple Linux machine in Docker. Using it with Linux, I clone my dev repository and mount the repo as a volume in Docker. Then, when I enter into the Docker container
What can I do to keep file ownership in docker?
why do you need to do this?
if you're using a host-mounted volume (via docker run, with -v $PWD:/my/app args for example) in your container, then it doesn't matter what the permissions are in the image itself.
you can edit the files on your mac and the changes will be immediately reflected in the container.
this is all i ever do from my mac, and i never have issues editing files in my volume or having those changes reflected in the container