docker icon indicating copy to clipboard operation
docker copied to clipboard

Exiting from top causes container to shut down

Open lePereT opened this issue 5 years ago • 3 comments

For the previous issue I used top inside the container to determine that something was up with urngd. However, consistently when leaving top with a ctrl + c it causes the container itself to crash.

To replicate:

  1. docker run --rm -it openwrtorg/rootfs
  2. top
  3. ctrl + c
  4. wait 2 seconds

lePereT avatar Apr 13 '20 11:04 lePereT

On some further digging, I think it's related to the errror message that appears just above the banner on login using the Readme command of docker run --rm -it openwrtorg/rootfs, which is /bin/ash: can't access tty; job control turned off

This looks like it means that advanced tty functionality like ctrl + c is unavailable

lePereT avatar Apr 13 '20 13:04 lePereT

So this gets weirder, and it's now exceeded my capacity to diagnose. Using the readme's command docker run --rm -it openwrtorg/rootfs leads to the issue here and the previous one I posted in #46.

However, if I use docker run -it openwrtorg/rootfs it again displays the same problems. But if I restart the crashed container then it behaves seemingly perfectly (except that urngd starts using 100% of CPU after a few hours good behaviour) . Any idea as to what's happening here?

lePereT avatar Apr 13 '20 13:04 lePereT

I'm aware of the ctrl + c (SIGINT) issue, however don't know how to fix it. If you come up with an idea please help me out.

@lynxis do you have an idea regarding the tty access trouble?

aparcar avatar May 20 '20 21:05 aparcar