Docker命令行错位
相关问题可以参考
- Docker Exec does not resize terminal on container · Issue #314 · docker/for-linux (github.com)
- fixes 1492: tty initial size error by lifubang · Pull Request #1529 · docker/cli (github.com)
低版本的可以用下面的命令
sudo docker exec -it -e COLUMNS="$(tput cols)" -e LINES="$(tput lines)" container_name bash