Currently I see only 1 method to stop a running testcontainer: org.testcontainers.containers.GenericContainer#stop. But to my great surprise and dismay that method ends up calling dockerClient.killContainerCmd. So there is no way for graceful shutdown of running container which would allow for the application running inside it to perform any expected cleanup.
Please, provide a graceful stop.
Currently I see only 1 method to stop a running testcontainer:
org.testcontainers.containers.GenericContainer#stop. But to my great surprise and dismay that method ends up callingdockerClient.killContainerCmd. So there is no way for graceful shutdown of running container which would allow for the application running inside it to perform any expected cleanup.Please, provide a graceful stop.