Skip to content

Commit

Permalink
Revert "Add shutdownHook to send sigterm to ryuk (#7717)"
Browse files Browse the repository at this point in the history
This reverts commit 39f0219.
  • Loading branch information
eddumelendez committed Oct 30, 2024
1 parent 77a423c commit daa9a56
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,6 @@ private synchronized void maybeStart() {

ryukContainer.start();

Runtime
.getRuntime()
.addShutdownHook(
new Thread(
DockerClientFactory.TESTCONTAINERS_THREAD_GROUP,
() -> {
this.dockerClient.killContainerCmd(this.ryukContainer.getContainerId())
.withSignal("SIGTERM")
.exec();
}
)
);

CountDownLatch ryukScheduledLatch = new CountDownLatch(1);

String host = ryukContainer.getHost();
Expand Down

0 comments on commit daa9a56

Please sign in to comment.