Skip to content

Commit 9b63012

Browse files
authored
Prune containers (#1150)
1 parent d5353d4 commit 9b63012

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvironment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ public void signal(int sigValue) {
258258
public void close() throws Exception {
259259
if (containerId != null) {
260260
retry.executeSupplier(() -> client.killContainerCmd(containerId).exec());
261+
retry.executeSupplier(() -> client.pruneCmd(PruneType.CONTAINERS).exec());
261262
}
262263
}
263264

0 commit comments

Comments
 (0)