In some cases running a Docker container with -u 'id -u root':'id -g $USER' creates files which seem to be inaccessible to the Docker container because of the set file permissions.
Needs further investigation as this can't be reproduced reliably yet.