How to detach a docker container to be a running daemon?

Posted on

If I quite a docker instanced (invoking /bin/bash) by Ctrl+d, the docker container is closed.

How to detach a docker container to be a running daemon without closing it?

Docker has a detach sequence, which, by default, is Ctrl-p + Ctrl-q.

If the docker detach sequence is overridden by the --detach-keys="<sequence>" flag, you need to use the specified sequence instead.

Related Posts