I am new to using docker. A pre-configured image has been booted and comes up successfully. How can the terminal dimensions be changed - let us say to 60 lines by 120 characters - from the current (small) default?
Asked
Active
Viewed 5,995 times
10
1 Answers
6
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.
WestCoastProjects
- 3,765

stty cols 120 rows 60. – Jānis Elmeris Jul 28 '17 at 10:55