{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/10499","labels_url":"https://api.github.com/repos/docker/docker/issues/10499/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/10499/comments","events_url":"https://api.github.com/repos/docker/docker/issues/10499/events","html_url":"https://github.com/docker/docker/issues/10499","id":56171182,"number":10499,"title":"Docker logs via remote api vs client different while using TTY option","user":{"login":"mustafaakin","id":803763,"avatar_url":"https://avatars.githubusercontent.com/u/803763?v=3","gravatar_id":"","url":"https://api.github.com/users/mustafaakin","html_url":"https://github.com/mustafaakin","followers_url":"https://api.github.com/users/mustafaakin/followers","following_url":"https://api.github.com/users/mustafaakin/following{/other_user}","gists_url":"https://api.github.com/users/mustafaakin/gists{/gist_id}","starred_url":"https://api.github.com/users/mustafaakin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustafaakin/subscriptions","organizations_url":"https://api.github.com/users/mustafaakin/orgs","repos_url":"https://api.github.com/users/mustafaakin/repos","events_url":"https://api.github.com/users/mustafaakin/events{/privacy}","received_events_url":"https://api.github.com/users/mustafaakin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-01T17:51:06Z","updated_at":"2015-02-28T03:13:45Z","closed_at":"2015-02-28T03:13:45Z","body":"Hi, I have executed a Java compilation in a container, do not mind the compilation error, but when I access it via curl, it behaves differently:\r\n\r\n```\r\nvagrant@ubuntu:$ curl \"localhost:4500/containers/1ea75fd47a6a414f12c2bcbe170104b0d91b91548a0cd15a169177df8422a873/logs?stdout=1&stderr=1\"\r\nMCode.java:1: error: error while writing Code: Code.class (Permission denied)\r\nXpublic class Code {public static void main(String[] args){ System.out.println(\"hi\"); }}\r\n               ^                                                                                                                                                         1 error\r\n\r\nvagrant@ubuntu:$ docker logs 1ea75f\r\nCode.java:1: error: error while writing Code: Code.class (Permission denied)\r\npublic class Code {public static void main(String[] args){ System.out.println(\"hi\"); }}\r\n       ^\r\n1 error\r\n```\r\n\r\nWhat are those M, X characters? They dissappear if I supply `\"Tty\": true` on my container creation."}}