{"action":"created","issue":{"url":"https://api.github.com/repos/moby/moby/issues/25450","repository_url":"https://api.github.com/repos/moby/moby","labels_url":"https://api.github.com/repos/moby/moby/issues/25450/labels{/name}","comments_url":"https://api.github.com/repos/moby/moby/issues/25450/comments","events_url":"https://api.github.com/repos/moby/moby/issues/25450/events","html_url":"https://github.com/moby/moby/issues/25450","id":169670844,"number":25450,"title":"Docker number of lines in terminal changing inside docker","user":{"login":"silgon","id":901061,"avatar_url":"https://avatars2.githubusercontent.com/u/901061?v=4","gravatar_id":"","url":"https://api.github.com/users/silgon","html_url":"https://github.com/silgon","followers_url":"https://api.github.com/users/silgon/followers","following_url":"https://api.github.com/users/silgon/following{/other_user}","gists_url":"https://api.github.com/users/silgon/gists{/gist_id}","starred_url":"https://api.github.com/users/silgon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silgon/subscriptions","organizations_url":"https://api.github.com/users/silgon/orgs","repos_url":"https://api.github.com/users/silgon/repos","events_url":"https://api.github.com/users/silgon/events{/privacy}","received_events_url":"https://api.github.com/users/silgon/received_events","type":"User","site_admin":false},"labels":[{"id":73641990,"url":"https://api.github.com/repos/moby/moby/labels/area/runtime","name":"area/runtime","color":"fbca04","default":false},{"id":190274019,"url":"https://api.github.com/repos/moby/moby/labels/exp/intermediate","name":"exp/intermediate","color":"3B8686","default":false},{"id":179237356,"url":"https://api.github.com/repos/moby/moby/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF","default":false},{"id":464842733,"url":"https://api.github.com/repos/moby/moby/labels/status/accepted","name":"status/accepted","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":{"login":"mlaventure","id":16065150,"avatar_url":"https://avatars1.githubusercontent.com/u/16065150?v=4","gravatar_id":"","url":"https://api.github.com/users/mlaventure","html_url":"https://github.com/mlaventure","followers_url":"https://api.github.com/users/mlaventure/followers","following_url":"https://api.github.com/users/mlaventure/following{/other_user}","gists_url":"https://api.github.com/users/mlaventure/gists{/gist_id}","starred_url":"https://api.github.com/users/mlaventure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlaventure/subscriptions","organizations_url":"https://api.github.com/users/mlaventure/orgs","repos_url":"https://api.github.com/users/mlaventure/repos","events_url":"https://api.github.com/users/mlaventure/events{/privacy}","received_events_url":"https://api.github.com/users/mlaventure/received_events","type":"User","site_admin":false},"assignees":[{"login":"mlaventure","id":16065150,"avatar_url":"https://avatars1.githubusercontent.com/u/16065150?v=4","gravatar_id":"","url":"https://api.github.com/users/mlaventure","html_url":"https://github.com/mlaventure","followers_url":"https://api.github.com/users/mlaventure/followers","following_url":"https://api.github.com/users/mlaventure/following{/other_user}","gists_url":"https://api.github.com/users/mlaventure/gists{/gist_id}","starred_url":"https://api.github.com/users/mlaventure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlaventure/subscriptions","organizations_url":"https://api.github.com/users/mlaventure/orgs","repos_url":"https://api.github.com/users/mlaventure/repos","events_url":"https://api.github.com/users/mlaventure/events{/privacy}","received_events_url":"https://api.github.com/users/mlaventure/received_events","type":"User","site_admin":false}],"milestone":null,"comments":20,"created_at":"2016-08-05T18:42:28Z","updated_at":"2017-11-16T07:46:08Z","closed_at":null,"author_association":"NONE","body":"I would like to know how to change the following behavior. Let's say my terminal has **28** lines. Then I use the following commands:\n\n```\n$ tput lines # my terminal\n28\n$ docker run  --rm  -it ubuntu:16.04 tput lines  # docker container\n24  ## WHY??\n$ docker run  --rm  -it ubuntu:16.04 bash # docker container inside command\nroot@810effa2777c:/# tput lines\n28\n```\n\nAs you can see, even when all the results should be **28**, when I'm calling the container as `docker run  --rm  -it ubuntu:16.04 tput lines` it always gives me 24 despite the size of my terminal. This is not only with the ubuntu container, I also tried with debian (`docker run --rm -it debian tput lines`) and I'm having the same result 24.\n\nThe purpose of this is to use the [mdp presentation tool](https://github.com/visit1985/mdp) which takes into account the lines in your terminal. When my implementation failed, I tried some other person's [docker implementation](https://hub.docker.com/r/jess/mdp/) but I ran to the same error.\n\nHere's my error in an image:\n\n[![Docker number of lines in terminal changing inside docker](http://i.stack.imgur.com/3mwhD.png)](http://i.stack.imgur.com/3mwhD.png)\n\nDoes anyone has any idea what it could be and how can this be solved?\n"},"comment":{"url":"https://api.github.com/repos/moby/moby/issues/comments/344841743","html_url":"https://github.com/moby/moby/issues/25450#issuecomment-344841743","issue_url":"https://api.github.com/repos/moby/moby/issues/25450","id":344841743,"user":{"login":"ripcurld0","id":2453279,"avatar_url":"https://avatars0.githubusercontent.com/u/2453279?v=4","gravatar_id":"","url":"https://api.github.com/users/ripcurld0","html_url":"https://github.com/ripcurld0","followers_url":"https://api.github.com/users/ripcurld0/followers","following_url":"https://api.github.com/users/ripcurld0/following{/other_user}","gists_url":"https://api.github.com/users/ripcurld0/gists{/gist_id}","starred_url":"https://api.github.com/users/ripcurld0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripcurld0/subscriptions","organizations_url":"https://api.github.com/users/ripcurld0/orgs","repos_url":"https://api.github.com/users/ripcurld0/repos","events_url":"https://api.github.com/users/ripcurld0/events{/privacy}","received_events_url":"https://api.github.com/users/ripcurld0/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T07:46:08Z","updated_at":"2017-11-16T07:46:08Z","author_association":"MEMBER","body":"Can we close this ticket or we should wait till this fix lands into production?"}}
{"actor":{"display_login":"ripcurld0"}}