Docker detach container

Docker container stop once the main program it started with stop running. If you start a docker container with console using -ti option, it stop when you disconnect.

To avoid process getting stopped, you can detach from the console.

This is done by pressing keys

Advertisement

CTRL + P

Followed by

CTRL + Q

You can just press CTRL key, then press “p”, then “q”.

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement