Hello
If you run a container and attach to that container you would see its stin, stout or stderr outputs. If you press
One of the reasons that
parameter called
If you set
#docker #attach #detach #sig_proxy #sequence_key #SIGINT #SIGKILL
Docker
geeks :)If you run a container and attach to that container you would see its stin, stout or stderr outputs. If you press
CTRL+C
while you're attached to the container the container will get stopped. In order to detach from the container you can use key sequence CTRL+ p
+ CTRL+q
.One of the reasons that
CTRL+C
stops the container is that this key combination sends SIGKILL
signal to the container. There is aparameter called
--sig-proxy
that is true by default which makes CTRL+C
to send SIGINT
. You can detach from a container and leave it running using the CTRL-p CTRL-q key sequence.If you set
--sig-proxy
to false then CTRL+C
would not kill the running container:docker attach YOUR_CONTAINER_ID --sig-proxy=false
NOTE:
you can get container id by issuing docker ps
command.#docker #attach #detach #sig_proxy #sequence_key #SIGINT #SIGKILL