Reto Gmür
Reto Gmür

Reputation: 2647

How to detach from a docker in a docker?

Detaching from a docker container works with CTRL-P + CTRL-Q. However how do I detach from a docker in docker?

In my usecase I'm running ssh in a docker and on the server I also attach to docker containers. Now I would like to be able to detach from a conatiner I attached to on the server, however CTRL-P + CTRL-Q will detach from the local container running the ssh connection.

Is there any way to detach from the docker in the docker?

Upvotes: 3

Views: 1377

Answers (1)

Bryan
Bryan

Reputation: 12200

Pressing Ctrlp twice will send a single Ctrlp to the container you are attached to.
So you want Ctrlp Ctrlp Ctrlq

Upvotes: 1

Related Questions