{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/13294","labels_url":"https://api.github.com/repos/ansible/ansible/issues/13294/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/13294/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/13294/events","html_url":"https://github.com/ansible/ansible/issues/13294","id":118824825,"number":13294,"title":"Introduce ansible_docker_host parameter for connection=docker","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/feature_idea","name":"feature_idea","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-25T12:17:11Z","updated_at":"2015-11-30T15:33:09Z","closed_at":null,"body":"The [Docker Command Line Reference](http://docs.docker.com/engine/reference/commandline/cli/) lists a parameter `-H` or `--host`:\r\n\r\n```\r\n-H, --host=[]: The socket(s) to talk to the Docker daemon in the format of tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd.\r\n```\r\n\r\nThis parameter should be accepted by the new Docker connection, introduced in Ansible 2.0. Here two examples of possible usage within the inventory:\r\n\r\n```\r\nmycontainer ansible_connection=docker ansible_docker_host=\"tcp://host:port/path\"\r\n```\r\n\r\n... and within a playbook:\r\n\r\n```\r\n- name: do something\r\n  hosts: containerxyz\r\n  connection: docker\r\n  docker_host: \"tcp://host:port/path\"\r\n  ...\r\n```\r\n\r\n( Label feature_idea )"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/160662377","html_url":"https://github.com/ansible/ansible/issues/13294#issuecomment-160662377","issue_url":"https://api.github.com/repos/ansible/ansible/issues/13294","id":160662377,"user":{"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},"created_at":"2015-11-30T15:33:09Z","updated_at":"2015-11-30T15:33:09Z","body":"I would make these new options align with existing connection vars, though we might need to create new ones for the cacert"}}