{"action":"created","issue":{"url":"https://api.github.com/repos/bflad/chef-docker/issues/261","labels_url":"https://api.github.com/repos/bflad/chef-docker/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/bflad/chef-docker/issues/261/comments","events_url":"https://api.github.com/repos/bflad/chef-docker/issues/261/events","html_url":"https://github.com/bflad/chef-docker/issues/261","id":54982444,"number":261,"title":"Allow docker_registry to login for another account than root","user":{"login":"patatepartie","id":315939,"avatar_url":"https://avatars.githubusercontent.com/u/315939?v=3","gravatar_id":"","url":"https://api.github.com/users/patatepartie","html_url":"https://github.com/patatepartie","followers_url":"https://api.github.com/users/patatepartie/followers","following_url":"https://api.github.com/users/patatepartie/following{/other_user}","gists_url":"https://api.github.com/users/patatepartie/gists{/gist_id}","starred_url":"https://api.github.com/users/patatepartie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patatepartie/subscriptions","organizations_url":"https://api.github.com/users/patatepartie/orgs","repos_url":"https://api.github.com/users/patatepartie/repos","events_url":"https://api.github.com/users/patatepartie/events{/privacy}","received_events_url":"https://api.github.com/users/patatepartie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T06:26:48Z","updated_at":"2015-01-28T11:17:12Z","closed_at":null,"body":"When using `docker_registry` the `docker login` command is run as `root`. \r\nThis is the expected behaviour when interacting with `docker` only through `chef`, but it doesn't allow another user of the provisioned node to interact with a registry.\r\n\r\nThe workaround is simple - copy the `/root/.dockercfg` to `$HOME/.dockercfg` - but it would be cleaner to allow a `user` parameter to the `docker_registry` resource. "},"comment":{"url":"https://api.github.com/repos/bflad/chef-docker/issues/comments/71817864","html_url":"https://github.com/bflad/chef-docker/issues/261#issuecomment-71817864","issue_url":"https://api.github.com/repos/bflad/chef-docker/issues/261","id":71817864,"user":{"login":"omribahumi","id":2558457,"avatar_url":"https://avatars.githubusercontent.com/u/2558457?v=3","gravatar_id":"","url":"https://api.github.com/users/omribahumi","html_url":"https://github.com/omribahumi","followers_url":"https://api.github.com/users/omribahumi/followers","following_url":"https://api.github.com/users/omribahumi/following{/other_user}","gists_url":"https://api.github.com/users/omribahumi/gists{/gist_id}","starred_url":"https://api.github.com/users/omribahumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omribahumi/subscriptions","organizations_url":"https://api.github.com/users/omribahumi/orgs","repos_url":"https://api.github.com/users/omribahumi/repos","events_url":"https://api.github.com/users/omribahumi/events{/privacy}","received_events_url":"https://api.github.com/users/omribahumi/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T11:17:12Z","updated_at":"2015-01-28T11:17:12Z","body":"+1\r\n\r\nThis would also require having a `user` attribute for all LWRPs.\r\nI suggest having a node attribute for the default docker user."}}