英文:
Quarkus dev postgresql container not shutting down with quarkus
问题
Quarkus版本为2.16.7.Final。数据源是Postgresql:12.4。关于开发服务,除了以下设置以外都是默认的:
datasource:
db-kind: postgresql
devservices:
image-name: artifactory.{"image-name"}/postgres:12.4
port: 5000
我使用mvn quarkus:dev
来运行应用程序。当我关闭或终止服务器时,Postgresql容器会继续运行(以前它会与服务器一起正常关闭)。我必须每次手动停止容器才能重新启动服务器。
Keycloak和ryuk容器会随服务器一起关闭,但Postgresql容器会保持运行。
我尝试设置testcontainers.reuse.enable=false,但没有帮助。
英文:
Quarkus version 2.16.7.Final. Datasource is Postgresql:12.4. Everything is default wrt dev services except the below settings:
datasource:
db-kind: postgresql
devservices:
image-name: artifactory.{"image-name"}/postgres:12.4
port: 5000
I run the app using mvn quarkus:dev
. When I shutdown or kill the server the Postgresql container continues to run (It used to shutdown cleanly along with the server before). I have to manually stop the container every time I want to start the server again.
Keycloack and ryuk containers are shutting down with server but the postgres container staying alive.
I tried to set testcontainers.reuse.enable=false but it doesn't help.
答案1
得分: 0
以下是已翻译的内容:
"The suggestion from https://github.com/quarkusio/quarkus/issues/34294 helped me. However, I still have no idea why it only occurs with the Postgres container."
英文:
The suggestion from https://github.com/quarkusio/quarkus/issues/34294 helped me. However, I still have no idea why it only occurs with the Postgres container.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论