{"action":"created","issue":{"url":"https://api.github.com/repos/fsouza/go-dockerclient/issues/563","repository_url":"https://api.github.com/repos/fsouza/go-dockerclient","labels_url":"https://api.github.com/repos/fsouza/go-dockerclient/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/fsouza/go-dockerclient/issues/563/comments","events_url":"https://api.github.com/repos/fsouza/go-dockerclient/issues/563/events","html_url":"https://github.com/fsouza/go-dockerclient/issues/563","id":170982037,"number":563,"title":"question about the hijack method","user":{"login":"logicminds","id":563900,"avatar_url":"https://avatars.githubusercontent.com/u/563900?v=3","gravatar_id":"","url":"https://api.github.com/users/logicminds","html_url":"https://github.com/logicminds","followers_url":"https://api.github.com/users/logicminds/followers","following_url":"https://api.github.com/users/logicminds/following{/other_user}","gists_url":"https://api.github.com/users/logicminds/gists{/gist_id}","starred_url":"https://api.github.com/users/logicminds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logicminds/subscriptions","organizations_url":"https://api.github.com/users/logicminds/orgs","repos_url":"https://api.github.com/users/logicminds/repos","events_url":"https://api.github.com/users/logicminds/events{/privacy}","received_events_url":"https://api.github.com/users/logicminds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-13T00:17:42Z","updated_at":"2016-12-30T05:57:19Z","closed_at":null,"body":"I am trying to run commands on a container by writing to a \"stdin stream\" and then read the output by reading the \"stdout stream\".  But I can't get this to work.\n\nEssentially, I do the following:\n1. create container\n2. Create two pipes (one for stdin, other for stdout)\n3. attach to container\n4. start container\n5. write input on stdin\n6. read output on stdout\n\nThe code snippet is here.  I know that docker creates a websocket for full duplex communication but I can't seem to leverage the go-dockerclient to get or send any data.  I must also note I am new to GO. \n\nhttps://gist.github.com/logicminds/ef38af5b6756c1fd53ac80845970336b\n\nAny help is appreciated.\n"},"comment":{"url":"https://api.github.com/repos/fsouza/go-dockerclient/issues/comments/269735463","html_url":"https://github.com/fsouza/go-dockerclient/issues/563#issuecomment-269735463","issue_url":"https://api.github.com/repos/fsouza/go-dockerclient/issues/563","id":269735463,"user":{"login":"JiangZhaoYang","id":8123257,"avatar_url":"https://avatars.githubusercontent.com/u/8123257?v=3","gravatar_id":"","url":"https://api.github.com/users/JiangZhaoYang","html_url":"https://github.com/JiangZhaoYang","followers_url":"https://api.github.com/users/JiangZhaoYang/followers","following_url":"https://api.github.com/users/JiangZhaoYang/following{/other_user}","gists_url":"https://api.github.com/users/JiangZhaoYang/gists{/gist_id}","starred_url":"https://api.github.com/users/JiangZhaoYang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiangZhaoYang/subscriptions","organizations_url":"https://api.github.com/users/JiangZhaoYang/orgs","repos_url":"https://api.github.com/users/JiangZhaoYang/repos","events_url":"https://api.github.com/users/JiangZhaoYang/events{/privacy}","received_events_url":"https://api.github.com/users/JiangZhaoYang/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T05:57:19Z","updated_at":"2016-12-30T05:57:19Z","body":"@fsouza THX, I try your sample, it work good !"}}
{"actor":{"display_login":"JiangZhaoYang"}}