mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
chore: mise ucind:cleanup task to remove ucind managed containers and networks
This commit is contained in:
@@ -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