HenryGP / om_ansible

Minimalistic, disposable Ops Manager environment with Ansible
19 stars 17 forks source link

Shell size too small #8

Closed HenryGP closed 4 years ago

HenryGP commented 6 years ago

Probably related to tty and pty in Docker. When connecting to a container using docker exec -ti <container_name> /bin/bash the shell is too small hence full screen utilities like less don't work as expected as characters are scrambled.

HenryGP commented 6 years ago

The behaviour is the same as attaching through a serial port to a running server. Found out that this issue is not observed when connecting to the container running the following command:

bash -c "clear && docker exec -ti <container_name> /bin/bash"
HenryGP commented 6 years ago

After further testing I can confirm that the execution of the docker exec as shown above is not sufficient to resolve the issue. However, resizing the window once executed, resolves the problem. Will continue investigating this issue if there is any possible way to permanently fix this.

emisca commented 4 years ago

this is fixed with the current docker version.