TritonDataCenter / sdc-docker

Docker Engine for Triton
Mozilla Public License 2.0
182 stars 49 forks source link

docker terminal (docker exec -it .. bash) hangs when huge information is printed #105

Open chayeon opened 7 years ago

chayeon commented 7 years ago

Hi,

When I get into docker containers using docker exec -it <name> bash and print some long file with command like cat in my private Triton environment, the terminal hangs or sometimes the connection is broken.

Bellow script makes the terminal hang. I cannot escape the terminal.

#!/bin/bash

for ((i=0;i<10000;i++))
do
  du -h /
done

Following script makes the connection be broken. It takes some seconds if you see the error message regarding the broken connection.

#!/bin/bash

for ((i=0;i<10000;i++))
do
  cat /var/log/dpkg.log
done

When connection is broken following message comes out.

HTTP/1.1 400 Connection Not Upgraded
Connection: close
Date: Tue, 06 Dec 2016 06:48:29 GMT

F.Y.I. This symptom also occurs in Joyent Public Cloud.

Thank you.