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 li
A nice way to run bash inside the container without encountering line problems is here:
docker exec -e COLUMNS="`tput cols`" -e LINES="`tput lines`" -ti container bash