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

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

    I had the same issue, ctrl-P and Q would not work, nor ctrl-C... eventually I opened another terminal session and I did "docker stop containerid " and "docker start containerid " and it got the job done. Weird.

    0 讨论(0)
  • 2020-11-29 15:09

    Check out also the --sig-proxy option:

    docker attach --sig-proxy=false 304f5db405ec
    

    Then use CTRL+c to detach

    0 讨论(0)
  • 2020-11-29 15:09

    to stop a docker process and release the ports, first use ctrl-c to leave the exit the container then use docker ps to find the list of running containers. Then you can use the docker container stop to stop that process and release its ports. The container name you can find from the docker ps command which gives the name in the name column. Hope this solves your queries....

    0 讨论(0)
提交回复
热议问题