Skip to content

Commit

Permalink
Revert "Add shutdownHook to send sigterm to ryuk (#7717)" (#9504)
Browse files Browse the repository at this point in the history
This reverts commit 39f0219.

Fixes #8558
  • Loading branch information
eddumelendez authored Nov 6, 2024
1 parent 10f32af commit 78ba315
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 78ba315

Please sign in to comment.