{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18497","labels_url":"https://api.github.com/repos/docker/docker/issues/18497/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18497/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18497/events","html_url":"https://github.com/docker/docker/issues/18497","id":121008488,"number":18497,"title":"\"docker logs\" omits partial lines such as prompts for running containers.","user":{"login":"mvollmer","id":3228183,"avatar_url":"https://avatars.githubusercontent.com/u/3228183?v=3","gravatar_id":"","url":"https://api.github.com/users/mvollmer","html_url":"https://github.com/mvollmer","followers_url":"https://api.github.com/users/mvollmer/followers","following_url":"https://api.github.com/users/mvollmer/following{/other_user}","gists_url":"https://api.github.com/users/mvollmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mvollmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvollmer/subscriptions","organizations_url":"https://api.github.com/users/mvollmer/orgs","repos_url":"https://api.github.com/users/mvollmer/repos","events_url":"https://api.github.com/users/mvollmer/events{/privacy}","received_events_url":"https://api.github.com/users/mvollmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-08T13:42:24Z","updated_at":"2015-12-09T08:47:22Z","closed_at":null,"body":"This is #8443, which I think was closed erroneously.\r\n\r\n```\r\n# docker pull fedora\r\n# docker run --name=f-shell -t -i fedora /bin/bash\r\n[root@c9218fc786ae /]# \r\n```\r\n\r\nand in another terminal\r\n\r\n```\r\n# docker logs f-shell\r\n<empty>\r\n#\r\n```\r\n\r\nThis is annoying for tools like Cockpit, see https://github.com/cockpit-project/cockpit/issues/1159.\r\n\r\nCockpit can show a fully functional terminal for a container that has been created with the \"-t -i\" options.  The terminal is initialized with the log of a container, and it is confusing if the prompt is missing.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/163152383","html_url":"https://github.com/docker/docker/issues/18497#issuecomment-163152383","issue_url":"https://api.github.com/repos/docker/docker/issues/18497","id":163152383,"user":{"login":"mvollmer","id":3228183,"avatar_url":"https://avatars.githubusercontent.com/u/3228183?v=3","gravatar_id":"","url":"https://api.github.com/users/mvollmer","html_url":"https://github.com/mvollmer","followers_url":"https://api.github.com/users/mvollmer/followers","following_url":"https://api.github.com/users/mvollmer/following{/other_user}","gists_url":"https://api.github.com/users/mvollmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mvollmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvollmer/subscriptions","organizations_url":"https://api.github.com/users/mvollmer/orgs","repos_url":"https://api.github.com/users/mvollmer/repos","events_url":"https://api.github.com/users/mvollmer/events{/privacy}","received_events_url":"https://api.github.com/users/mvollmer/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T08:47:22Z","updated_at":"2015-12-09T08:47:22Z","body":"> If you want the actual stream, you should use attach.\r\n\r\nAs far as I can see, `attach` doesn't give historical data.  So if you have a running container that sits at a \"Are you sure? [Yn]\" prompt, and you attach to it after it has printed that prompt, you wont see that prompt, right?\r\n"}}