bcicen / ctop

Top-like interface for container metrics
https://ctop.sh
MIT License
15.61k stars 528 forks source link

Exec shell closes with multiple lines of output #354

Open delanym opened 2 months ago

delanym commented 2 months ago

If I run docker run -it mariadb:11.5.2 /bin/sh and then enter mariadb-binlog --help I get 264 lines of output.

But if I run ctop-0.7.7-linux-amd64 and execute a shell on the container and enter mariadb-binlog --help the shell exits.

Here's something you can try: open an exec shell and repeat this command (it should eventually kill the shell) printf '0123456789abcdef%.0s' {1..254}

geekodour commented 2 months ago

I have built a docker image and am not able to exec it from ctop, it'll be helpful to have debug log around this , i am able to exec with docker exec however, so it has to do something with the exec command ctop is trying to run, having debug log will help us figure what to adjust in our containers