How do I gracefully exit a docker container that I've connected to using
docker exec -ti, after the docker I connected to exits?
If I exit the original container, the shell that ran the
docker exec command is hung, and the only way I can find to exit back to its shell is to kill the
docker exec command from another terminal.
Is there a more graceful way?
This happens whether I start the container with
--rm or not.
I'm running docker 19.03.12 under bash 5.0.16 in gnome-terminal 3.26.3 in Ubuntu 20.04.