From cdbd6242c87651c45ca46f8f11e276996129930b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Z=C3=B6ller?= Date: Wed, 16 Dec 2020 10:05:20 +0100 Subject: [PATCH] #47: Documentation on perform-cleanup --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index e7ce552..023d539 100644 --- a/README.md +++ b/README.md @@ -410,6 +410,20 @@ Creates a network. The optional map accepts config values for enabling ipv6 and (create-network) ``` +### perform-cleanup! +Stops and removes all containers which were created in the JVM, including the REPL session you are in. This is helpful, if you are exploring functionality with containers in the REPL, and create lots of instances on the fly without stopping them. Testcontainers will remove all containers upon JVM shutdown, but the REPL keeps the JVM alive for a long time. + +#### Config parameters: +None + +#### Result: +None + +#### Example: +```clojure +(perform-cleanup!) +``` + ### dump-logs Call on a started container. Provided logging was enabled for a container, returns the given log presentation, e.g. as a string