I can attach to a docker process but Ctrl+C doesn't work to detach from it. exit
basically halts the process.
建议的工作流程是什么,让流程运行,偶尔附加到它以进行一些更改,然后分离?
To detach the tty without exiting the shell, use the escape sequence Ctrl+P followed by Ctrl+Q. More details here.
附加信息来自这个来源:
- docker run -t -i → 可以通过以下方式分离
^P^Q
并使用 docker Attach 重新连接
- docker run -i → 无法与
^P^Q
;会破坏标准输入
- docker run → 无法与
^P^Q
;可以 SIGKILL 客户端;可以使用 docker Attach 重新连接
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)