Skip to content

Commit daa9a56

Browse files
committed
Revert "Add shutdownHook to send sigterm to ryuk (#7717)"
This reverts commit 39f0219.
1 parent 77a423c commit daa9a56

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

core/src/main/java/org/testcontainers/utility/RyukResourceReaper.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,6 @@ private synchronized void maybeStart() {
7777

7878
ryukContainer.start();
7979

80-
Runtime
81-
.getRuntime()
82-
.addShutdownHook(
83-
new Thread(
84-
DockerClientFactory.TESTCONTAINERS_THREAD_GROUP,
85-
() -> {
86-
this.dockerClient.killContainerCmd(this.ryukContainer.getContainerId())
87-
.withSignal("SIGTERM")
88-
.exec();
89-
}
90-
)
91-
);
92-
9380
CountDownLatch ryukScheduledLatch = new CountDownLatch(1);
9481

9582
String host = ryukContainer.getHost();

0 commit comments

Comments
 (0)