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
I just tested with version Docker version 18.06.1-ce, build e68fc7a. It seems to have the same problem. However, one of the guys in the github issue gave a practical workaround:
Docker version 18.06.1-ce, build e68fc7a
docker run --rm -it -e COLUMNS=$COLUMNS -e LINES=$LINES -e TERM=$TERM -it ubuntu:16.04 tput lines