How to detach from docker to docker?

Detaching from a docker container works with CTRL-P + CTRL-Q

. However, how do I detach from docker to docker?

In my usecase, I run ssh in docker, and on the server, I also attach to docker containers. Now I would like to be able to detach from the conatiner that I am attached to on the server, however, CTRL-P + CTRL-Q

will detach from the local container that starts the ssh connection.

Is there a way to detach from docker in docker?

+3


source to share


1 answer


Pressing Ctrl ptwice will send one Ctrl pto the container you are connected to.
Therefore you wantCtrl p Ctrl p Ctrl q



+1


source







All Articles