【发布时间】:2016-07-27 21:30:52
【问题描述】:
我有一个运行 play Web 应用程序的 docker 映像。在 dockerfile 中有启动服务器的 CMD,它会一直等到您按 Ctrl+D 退出。如果我这样做:
docker run -d -i -v
它工作正常 - 启动服务器并等待 ctrl+D。
然而,当我启动容器时,情况并非如此:
docker start -i
服务器会自动停止:
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
[success] Total time: 1 s, completed Jul 27, 2016 11:54:13 AM <--- this indicates that the server was stopped.
如何强制 docker start 不停止服务器?
【问题讨论】:
标签: docker playframework