You can detach from the container and leave it running with CTRL-p CTRL-q
(for a quiet exit) or with CTRL-c
if --sig-proxy
is false.
If --sig-proxy
is true (the default),CTRL-c
sends a SIGINT
to the container.
Note: A process running as PID 1 inside a container is treated specially by Linux: it ignores any signal without a handler installed. So, the process does not terminate on
SIGINT
orSIGTERM
unless it is coded to do so.