How to increase terminal dimensions in docker

Solution 1:

This was fixed in docker master branch some two and a half years later.
https://github.com/moby/moby/issues/25450

https://github.com/moby/moby/pull/37172

It appears that the fix were

docker run --rm -it -e COLUMNS=$COLUMNS -e LINES=$LINES -e TERM=$TERM -it ubuntu:16.04 tput lines

I have not tested it yet.