{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/golang/issues/60","labels_url":"https://api.github.com/repos/docker-library/golang/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/golang/issues/60/comments","events_url":"https://api.github.com/repos/docker-library/golang/issues/60/events","html_url":"https://github.com/docker-library/golang/issues/60","id":103112413,"number":60,"title":"stderr/stdout not redirected properly","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T20:42:34Z","updated_at":"2015-08-25T20:53:25Z","closed_at":null,"body":"I have a Go program that writes to both stderr and stdout. If I run this within `golang:1.5-onbuild` base image, the output I get from the container when I attach to stdout of the container (using `-i -t -a stdout`) also contains the output from program's stderr.\r\n\r\nI'm guessing this is happening because of `go-wrapper`. Should this be fixed or is it by design?"},"comment":{"url":"https://api.github.com/repos/docker-library/golang/issues/comments/134737814","html_url":"https://github.com/docker-library/golang/issues/60#issuecomment-134737814","issue_url":"https://api.github.com/repos/docker-library/golang/issues/60","id":134737814,"user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T20:53:25Z","updated_at":"2015-08-25T20:53:25Z","body":"That's Docker itself:\r\n```console\r\n$ docker run -it -a stdout debian bash -c 'echo >&2 test'\r\ntest\r\n```"}}