{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/40693","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/40693/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/40693/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/40693/events","html_url":"https://github.com/ansible/ansible/pull/40693","id":326355837,"number":40693,"title":"Adding a switch to output docker logs","user":{"login":"achinthagunasekara","id":3791781,"avatar_url":"https://avatars1.githubusercontent.com/u/3791781?v=4","gravatar_id":"","url":"https://api.github.com/users/achinthagunasekara","html_url":"https://github.com/achinthagunasekara","followers_url":"https://api.github.com/users/achinthagunasekara/followers","following_url":"https://api.github.com/users/achinthagunasekara/following{/other_user}","gists_url":"https://api.github.com/users/achinthagunasekara/gists{/gist_id}","starred_url":"https://api.github.com/users/achinthagunasekara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achinthagunasekara/subscriptions","organizations_url":"https://api.github.com/users/achinthagunasekara/orgs","repos_url":"https://api.github.com/users/achinthagunasekara/repos","events_url":"https://api.github.com/users/achinthagunasekara/events{/privacy}","received_events_url":"https://api.github.com/users/achinthagunasekara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-25T02:03:56Z","updated_at":"2018-05-25T02:09:04Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/40693","html_url":"https://github.com/ansible/ansible/pull/40693","diff_url":"https://github.com/ansible/ansible/pull/40693.diff","patch_url":"https://github.com/ansible/ansible/pull/40693.patch"},"body":"##### SUMMARY\r\n\r\nAdding a switch to output docker logs optionally if selected to do so.\r\n\r\n```\r\n- name: Create container if required and run command.\r\n  docker_container:\r\n    name: yum_reposync\r\n    image: \"{{ reposync_container }}\"\r\n    detach: no\r\n    volumes:\r\n      - \"/tmp/bootstrap.sh:/tmp/bootstrap.sh\"\r\n    entrypoint: /bin/bash /tmp/bootstrap.sh\r\n    log_driver: \"json-file\"\r\n    output_logs: 'yes'\r\n```\r\n##### ISSUE TYPE\r\n\r\nCurrently we are only able to see the logs of a container if the `command`, `entrypoint` task fails.\r\nHowever it's worthwhile having the ability to view these logs optionally regardless."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/391919919","html_url":"https://github.com/ansible/ansible/pull/40693#issuecomment-391919919","issue_url":"https://api.github.com/repos/ansible/ansible/issues/40693","id":391919919,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T02:09:04Z","updated_at":"2018-05-25T02:09:04Z","author_association":"CONTRIBUTOR","body":"cc @chouseknecht @cove @dusdanig @joshuaconner @kassiansun @softzilla @zfil\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}