0
我有一个运行play Web应用程序的docker映像。在dockerfile中有CMD启动服务器,它等待,直到你按Ctrl + D退出。如果我这样做:Docker在启动时退出CMD
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.
我怎样才能迫使码头工人开始不停的服务器?