医生说
docker attach: Attach local standard input, output, and error streams to a running container
根据我的理解,一个正在运行的容器可以有许多正在运行的进程,包括那些使用docker exec
启动的进程。那么,当使用docker Attach
时,我到底要附加到哪个进程?
最佳答案
它应该附加到附加终端的标准输入、输出和错误,显示正在进行的输出或以交互方式控制 ENTRYPOINT/CMD
进程。
所以它似乎与特定进程无关。
You can attach to the same contained process multiple times simultaneously, from different sessions on the Docker host.
尽管如此,过程仍然相同。
关于docker - ` docker attach `附加到哪个进程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51798774/