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

CTRL + P

Followed by

CTRL + Q

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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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