1
在使用jdubois/jhipster-docker生成並運行項目後,我似乎無法停止spring-boot。當我按下控制檯C時,它會嘗試停止但掛起,並要求我重新啓動整個碼頭機。jhipster-docker:spring-boot沒有終止控制C
什麼是停止jhipster應用程序的正確方法?
I'm using OS X 10.11.2.
Docker version 1.9.1, build a34a1d5
docker-machine version 0.5.4, build 6643d0e
latest version of jdubois/jhipster-docker
這裏是我運行泊塢窗運行命令:
$ docker run -u jhipster -w /home/jhipster/app -p 8080:8080 -p 3000:3000 -p 3001:3001 -d -t jdubois/jhipster-docker
然後我用下面的「連接」到容器:
$ docker exec -it<container-id> bash
一旦我在容器,我生成一個應用程序,並使用所有問題的默認值。
[email protected]:~/app$ yo jhipster testapp
.... take defaults for all questions ....
.... lots of output from generator here....
[email protected]:~/app$ mvn
該應用程序按預期啓動。下面是輸出的最後一位:
2016-01-13 14:52:56.244 DEBUG 347 --- [ restartedMain] c.m.m.c.apidoc.SwaggerConfiguration : Started Swagger in 17 ms
2016-01-13 14:52:59.714 INFO 347 --- [ restartedMain] com.mycompany.myapp.Application : Started Application in 27.602 seconds (JVM running for 28.696)
2016-01-13 14:52:59.716 INFO 347 --- [ restartedMain] com.mycompany.myapp.Application : Access URLs:
----------------------------------------------------------
Local: http://127.0.0.1:8080
External: http://172.17.0.2:8080
----------------------------------------------------------
在這一點上,我按下控制C和我期待春天啓動,停止,但它顯示了以下輸出,然後掛起。此時我無法停止容器。我必須重新啓動整個碼頭機。
^C2016-01-13 14:53:10.019 INFO 347 --- [ Thread-10] c.m.myapp.config.CacheConfiguration : Remove Cache Manager metrics
2016-01-13 14:53:10.041 INFO 347 --- [ Thread-10] c.m.myapp.config.CacheConfiguration : Closing Cache Manager
JAVA應用程序掛/成爲倒閉的可能是由於內核bug影響boot2docker 1.9.1(和各種版本的ubuntu);見https://github.com/docker/docker/issues/18180#issuecomment-166186061 – thaJeztah