How do you attach and detach from Docker's process?

后端 未结 15 869
情书的邮戳
情书的邮戳 2020-11-29 14:42

I can attach to a docker process but Ctrl+c doesn\'t work to detach from it. exit basically halts the process.

What\'s the recomm

15条回答
  •  佛祖请我去吃肉
    2020-11-29 14:45

    If you only need the docker process to go in the background you can use

    Ctrl + Z

    Be aware that it is not a real detach and it comes with a performance penalty. (You can return it to foreground with the bg command).

    Another option is to just close your terminal, if you don't need it any longer.

提交回复
热议问题