{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/13219","labels_url":"https://api.github.com/repos/ansible/ansible/issues/13219/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/13219/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/13219/events","html_url":"https://github.com/ansible/ansible/issues/13219","id":117881767,"number":13219,"title":"Docker connection does not work with non-root user","user":{"login":"ThomasSteinbach","id":1683246,"avatar_url":"https://avatars.githubusercontent.com/u/1683246?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasSteinbach","html_url":"https://github.com/ThomasSteinbach","followers_url":"https://api.github.com/users/ThomasSteinbach/followers","following_url":"https://api.github.com/users/ThomasSteinbach/following{/other_user}","gists_url":"https://api.github.com/users/ThomasSteinbach/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasSteinbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasSteinbach/subscriptions","organizations_url":"https://api.github.com/users/ThomasSteinbach/orgs","repos_url":"https://api.github.com/users/ThomasSteinbach/repos","events_url":"https://api.github.com/users/ThomasSteinbach/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasSteinbach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/5","html_url":"https://github.com/ansible/ansible/milestones/v2","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/5/labels","id":975800,"number":5,"title":"v2","description":null,"creator":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":508,"state":"open","created_at":"2015-02-11T19:43:06Z","updated_at":"2015-11-20T01:07:02Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-11-19T18:54:33Z","updated_at":"2015-11-20T01:13:33Z","closed_at":null,"body":"Hi,\r\ni have have started the official jenkins docker container, e.g. named as my-jenkins, and set up my inventory as follows:\r\n\r\n```\r\nmy-jenkins ansible_connection=docker\r\n```\r\n\r\nAll tasks of the playbook, which is targeted to `my-jenkins` as host, fail because the default user of the container is not root. Here the error message:\r\n\r\n```\r\nfatal: [localhost -> aci_jenkins]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"/usr/bin/python: can't open file '/var/jenkins_home/.ansible/tmp/ansible-tmp-1447958715.53-194745014881692/apt': [Errno 13] Permission denied\\n\", \"parsed\": false}\r\n```\r\n\r\nWhen I start the container before with `docker_user: root` everything works fine."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/158249009","html_url":"https://github.com/ansible/ansible/issues/13219#issuecomment-158249009","issue_url":"https://api.github.com/repos/ansible/ansible/issues/13219","id":158249009,"user":{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T01:13:33Z","updated_at":"2015-11-20T01:13:33Z","body":"Which version of docker do you have installed?"}}