{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/17692","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/17692/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/17692/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/17692/events","html_url":"https://github.com/ansible/ansible/issues/17692","id":178450749,"number":17692,"title":"docker connection plugin - could we use docker-py ?","user":{"login":"dustymabe","id":4530030,"avatar_url":"https://avatars.githubusercontent.com/u/4530030?v=3","gravatar_id":"","url":"https://api.github.com/users/dustymabe","html_url":"https://github.com/dustymabe","followers_url":"https://api.github.com/users/dustymabe/followers","following_url":"https://api.github.com/users/dustymabe/following{/other_user}","gists_url":"https://api.github.com/users/dustymabe/gists{/gist_id}","starred_url":"https://api.github.com/users/dustymabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustymabe/subscriptions","organizations_url":"https://api.github.com/users/dustymabe/orgs","repos_url":"https://api.github.com/users/dustymabe/repos","events_url":"https://api.github.com/users/dustymabe/events{/privacy}","received_events_url":"https://api.github.com/users/dustymabe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.2","name":"affects_2.2","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible/labels/feature_idea","name":"feature_idea","color":"006b75"},{"url":"https://api.github.com/repos/ansible/ansible/labels/needs_info","name":"needs_info","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-21T20:12:20Z","updated_at":"2016-09-23T19:41:14Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Feature Idea\r\n\r\n*Originally opened in https://github.com/ansible/ansible-container/issues/240 but moving here so we can perhaps have a discussion with the authors of the plugin*\r\n\r\nJust wanted to have a discussion here about the docker connection plugin in ansible.\r\n\r\nIf it were possible to run the exec command through [docker-py](https://docker-py.readthedocs.io/en/latest/api/#exec_create) then we could simply make the requirement be that docker-py is installed and not the entirety of the docker engine. \r\n\r\nOne example where this would be useful is right [here](https://github.com/ansible/ansible-container/blob/1eb891d8a34160a305c11c46f004002cf78782ad/container/templates/ansible-dockerfile.j2#L9) in ansible-container where we are installing all of docker into the container builder image. Instead of installing all of this we could simply install the thin python library and get the same functionality.\r\n\r\nthoughts? "},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/249284443","html_url":"https://github.com/ansible/ansible/issues/17692#issuecomment-249284443","issue_url":"https://api.github.com/repos/ansible/ansible/issues/17692","id":249284443,"user":{"login":"dustymabe","id":4530030,"avatar_url":"https://avatars.githubusercontent.com/u/4530030?v=3","gravatar_id":"","url":"https://api.github.com/users/dustymabe","html_url":"https://github.com/dustymabe","followers_url":"https://api.github.com/users/dustymabe/followers","following_url":"https://api.github.com/users/dustymabe/following{/other_user}","gists_url":"https://api.github.com/users/dustymabe/gists{/gist_id}","starred_url":"https://api.github.com/users/dustymabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustymabe/subscriptions","organizations_url":"https://api.github.com/users/dustymabe/orgs","repos_url":"https://api.github.com/users/dustymabe/repos","events_url":"https://api.github.com/users/dustymabe/events{/privacy}","received_events_url":"https://api.github.com/users/dustymabe/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T19:41:14Z","updated_at":"2016-09-23T19:41:14Z","body":"> Is it very likely that this connection plugin will have to be calling out to a remote Docker server\r\n\r\nNot sure - in the cases where people are trying to run ansible inside a container (which will be happening more and more) then the docker daemon may or may not be remote. \r\n\r\n\r\n\r\n> and can docker-py being installed without having a local Docker daemon?\r\n\r\nyes"}}
{"actor":{"display_login":"dustymabe"}}