When I use
docker run with the
-v flag to mount directories, then any files the container writes back to the host end up with bad permissions. I have to use
sudo to operate on the files.
This happens when using Docker from a Windows Subsystem for Linux (WSL) environment.