mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
chore: mise ucind:cleanup task to remove ucind managed containers and networks
This commit is contained in:
1 parent
21c65b9dbe
commit
a0dbe4a983
1 file changed
+9
@@ -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
|
||||
"""
|
||||
Reference in new issue
Block a user