Trying to run the default Jenkins image (or jenkinsci/jenkins) with a persistent volume mounted to /var/jenkins_home will currently fail:
2016-06-10T13:46:55.617454157Z touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied
2016-06-10T13:46:55.617955276Z Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?
The reason? Kubernetes volumes are currently mounted with root ownership and Jenkins runs as "jenkins" by default (https://github.com/jenkinsci/docker/blob/master/Dockerfile). The temporary workaround runs Jenkins as root - I don't advise production use unless you know what you're doing and have full control of the code you are building.
Currently there's a proposal for file system group permissions. More info here: