3

小白提问,如何让 Docker 容器不随着 SSH 客户端连接退出而结束

 1 year ago
source link: https://www.v2ex.com/t/907313
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  问与答

小白提问,如何让 Docker 容器不随着 SSH 客户端连接退出而结束

  hu6u · 3 小时 43 分钟前 · 478 次点击
我在容器里跑脚本,我该如何退出容器以及关闭 ssh 连接,并且能让容器里的脚本一直运行呢?我发现我关闭 ssh 连接后,容器就退出了 exited 。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK