Docker number of lines in terminal changing inside docker
问题 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: $ tput lines # my terminal 28 $ docker run --rm -it ubuntu:16.04 tput lines # docker container 24 ## WHY?? $ docker run --rm -it ubuntu:16.04 bash # docker container inside command root@810effa2777c:/# tput lines 28 As 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