play 웹 응용 프로그램을 실행하는 도커 이미지가 있습니다. 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.
어떻게 서버를 중지하지 않도록 고정 표시기의 시작을 강제 할 수 내가 용기를 시작할 때
는 그러나 이것은 사실이 아니다?