{"action":"created","issue":{"url":"https://api.github.com/repos/moby/tool/issues/11","repository_url":"https://api.github.com/repos/moby/tool","labels_url":"https://api.github.com/repos/moby/tool/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/moby/tool/issues/11/comments","events_url":"https://api.github.com/repos/moby/tool/issues/11/events","html_url":"https://github.com/moby/tool/pull/11","id":225148440,"number":11,"title":"Use Docker API for run","user":{"login":"riyazdf","id":1865981,"avatar_url":"https://avatars0.githubusercontent.com/u/1865981?v=3","gravatar_id":"","url":"https://api.github.com/users/riyazdf","html_url":"https://github.com/riyazdf","followers_url":"https://api.github.com/users/riyazdf/followers","following_url":"https://api.github.com/users/riyazdf/following{/other_user}","gists_url":"https://api.github.com/users/riyazdf/gists{/gist_id}","starred_url":"https://api.github.com/users/riyazdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riyazdf/subscriptions","organizations_url":"https://api.github.com/users/riyazdf/orgs","repos_url":"https://api.github.com/users/riyazdf/repos","events_url":"https://api.github.com/users/riyazdf/events{/privacy}","received_events_url":"https://api.github.com/users/riyazdf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-28T17:47:26Z","updated_at":"2017-05-10T16:44:21Z","closed_at":"2017-05-09T15:31:58Z","pull_request":{"url":"https://api.github.com/repos/moby/tool/pulls/11","html_url":"https://github.com/moby/tool/pull/11","diff_url":"https://github.com/moby/tool/pull/11.diff","patch_url":"https://github.com/moby/tool/pull/11.patch"},"body":"Uses Docker API to replicate `docker run`, including the fallback to pull an image if it isn't found. Many thanks to @cpuguy83 for helping navigate the stdin/stdout codepaths, please let me know if this can be cleaned up further!  In particular I'm not thrilled about how I have to convert `input` into a file for stdin\r\n\r\nAlso removed unused `dockerRun` function.\r\n\r\nTested locally with a `moby build` and `linuxkit run` on `linuxkit.yml`\r\n\r\n<img src=\"http://media.indiatimes.in/media/content/2015/Nov/animal-stag_3447499k_1447323007_725x725.jpg\" width=\"400\">\r\n\r\nSigned-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>"},"comment":{"url":"https://api.github.com/repos/moby/tool/issues/comments/300542561","html_url":"https://github.com/moby/tool/pull/11#issuecomment-300542561","issue_url":"https://api.github.com/repos/moby/tool/issues/11","id":300542561,"user":{"login":"riyazdf","id":1865981,"avatar_url":"https://avatars0.githubusercontent.com/u/1865981?v=3","gravatar_id":"","url":"https://api.github.com/users/riyazdf","html_url":"https://github.com/riyazdf","followers_url":"https://api.github.com/users/riyazdf/followers","following_url":"https://api.github.com/users/riyazdf/following{/other_user}","gists_url":"https://api.github.com/users/riyazdf/gists{/gist_id}","starred_url":"https://api.github.com/users/riyazdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riyazdf/subscriptions","organizations_url":"https://api.github.com/users/riyazdf/orgs","repos_url":"https://api.github.com/users/riyazdf/repos","events_url":"https://api.github.com/users/riyazdf/events{/privacy}","received_events_url":"https://api.github.com/users/riyazdf/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T16:44:21Z","updated_at":"2017-05-10T16:44:21Z","body":"@justincormack - sounds good.  Could you detail the improvements here or open issues so I can take a stab at them?"}}
{"actor":{"display_login":"riyazdf"}}