From a0dbe4a983f3c37dd22b26c45ea2c1265ec63117 Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Wed, 25 Mar 2026 13:17:32 +1000 Subject: [PATCH] chore: mise ucind:cleanup task to remove ucind managed containers and networks --- mise.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mise.toml b/mise.toml index 54599367..5f3e850c 100644 --- a/mise.toml +++ b/mise.toml @@ -41,3 +41,12 @@ run = """ protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative \ --proto_path=. --proto_path=internal/machine/api/vendor internal/machine/api/pb/*.proto """ + +[tasks."ucind:cleanup"] +description = "Remove ucind managed containers and networks" +run = """ +echo "==> Removing ucind managed containers..." +docker ps --filter "label=ucind.managed" -q | xargs docker rm -f +echo "==> Removing ucind managed networks..." +docker network ls --filter "label=ucind.managed" -q | xargs docker network rm -f +"""