{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/docker/issues/739","repository_url":"https://api.github.com/repos/jenkinsci/docker","labels_url":"https://api.github.com/repos/jenkinsci/docker/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/docker/issues/739/comments","events_url":"https://api.github.com/repos/jenkinsci/docker/issues/739/events","html_url":"https://github.com/jenkinsci/docker/issues/739","id":369795297,"node_id":"MDU6SXNzdWUzNjk3OTUyOTc=","number":739,"title":"Permission denied - /var/jenkins_home/copy_reference_file.log - New case","user":{"login":"larsskj","id":7857959,"node_id":"MDQ6VXNlcjc4NTc5NTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7857959?v=4","gravatar_id":"","url":"https://api.github.com/users/larsskj","html_url":"https://github.com/larsskj","followers_url":"https://api.github.com/users/larsskj/followers","following_url":"https://api.github.com/users/larsskj/following{/other_user}","gists_url":"https://api.github.com/users/larsskj/gists{/gist_id}","starred_url":"https://api.github.com/users/larsskj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsskj/subscriptions","organizations_url":"https://api.github.com/users/larsskj/orgs","repos_url":"https://api.github.com/users/larsskj/repos","events_url":"https://api.github.com/users/larsskj/events{/privacy}","received_events_url":"https://api.github.com/users/larsskj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-13T11:54:20Z","updated_at":"2018-10-13T12:46:37Z","closed_at":"2018-10-13T12:46:37Z","author_association":"NONE","body":"# Issues and Contributing\r\n\r\nCase #177 is closed - but I have the same issue.\r\n\r\nI'm trying to run the Docker container with another Jenkins user/group id. I want to migrate - slowly - from a traditional Jenkins setup to a Docker based setup, and because of this I want to keep the existing uid/gid for the Jenkins user. A uid/gid of 1000 for the Jenkins user is a bad choice, anyway, as this ID is often used for other purposes on host systems.\r\n\r\nAnd yes, I want to bind mount jenkins_home. Docker volumes might be a good idea in a small scale setup, but you cannot move a Docker volume from one host to another, so using Docker volumes means tying the Jenkins Docker container to a single host.\r\n\r\n(I know I can make a backup of the Docker volume, create a tarball, move that tarball to another machine, restore it into another volume and make Jenkins run again on the new host - but that's kind of out-of-scope. I want a quick failover.)\r\n\r\n### Docker commands that you execute\r\n\r\nBefore trying to run the stock Jenkins image, I execute\r\n\r\ndocker container prune -f\r\ndocker volume prune -f\r\n\r\nto make sure not to have any old runs left.\r\n\r\nI then execute\r\n\r\ndocker run -it -u 400:400 jenkins/jenkins\r\n\r\n### Actual result\r\n\r\ntouch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied\r\nCan not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?\r\n\r\n### Expected outcome\r\n\r\nA running container.\r\n\r\n### Have you tried a non-dockerized Jenkins and get the expected outcome?\r\n\r\nOh, yes. :-)\r\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/docker/issues/comments/429539112","html_url":"https://github.com/jenkinsci/docker/issues/739#issuecomment-429539112","issue_url":"https://api.github.com/repos/jenkinsci/docker/issues/739","id":429539112,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTUzOTExMg==","user":{"login":"carlossg","id":23651,"node_id":"MDQ6VXNlcjIzNjUx","avatar_url":"https://avatars2.githubusercontent.com/u/23651?v=4","gravatar_id":"","url":"https://api.github.com/users/carlossg","html_url":"https://github.com/carlossg","followers_url":"https://api.github.com/users/carlossg/followers","following_url":"https://api.github.com/users/carlossg/following{/other_user}","gists_url":"https://api.github.com/users/carlossg/gists{/gist_id}","starred_url":"https://api.github.com/users/carlossg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlossg/subscriptions","organizations_url":"https://api.github.com/users/carlossg/orgs","repos_url":"https://api.github.com/users/carlossg/repos","events_url":"https://api.github.com/users/carlossg/events{/privacy}","received_events_url":"https://api.github.com/users/carlossg/received_events","type":"User","site_admin":false},"created_at":"2018-10-13T12:46:37Z","updated_at":"2018-10-13T12:46:37Z","author_association":"NONE","body":"Read the solutions in #177 \r\nOpening duplicate issues just wastes everybody's time"}}
{"actor":{"display_login":"carlossg"}}