From 0fa9ec6d8540a3736b4a24fedec47dfd4efc8a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Fr=C3=A9con?= Date: Fri, 27 Sep 2024 16:52:59 +0200 Subject: [PATCH] Enhance cleanup section --- CONTRIBUTING.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73826fc..3937c35 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,8 +71,21 @@ driven by the `RUNNER_ENTRYPOINT` variable in [`runner.sh`](./runner.sh). ## Cleanup During development, many images might be created. To clean them away, you can -run the following command when using the `krunvm` runtime, or `podman image rm`: +run one of the following commands. + +When using the `krunvm` runtime: ```bash buildah rmi $(buildah images --format '{{.ID}}') ``` + +When using `podman+krun`: + +```bash +podman image rm $(podman images -q) +``` + +> [!WARNING] +> These commands will remove all unused images on your system. Make sure you +> don't need any of these images for other projects before running the cleanup. +> You may need to rebuild images for this project after cleanup.