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

后端 未结 15 879
情书的邮戳
情书的邮戳 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:42

    To detach from the container you simply hold Ctrl and press P + Q.

    To attach to a running container you use:

    $ docker container attach "container_name"
    

提交回复
热议问题