Also clean wizard config volume

This commit is contained in:
Zhi
2026-03-14 07:27:21 +00:00
parent 9e9ccbb704
commit 9204c4619a
2 changed files with 5 additions and 5 deletions

View File

@@ -11,10 +11,10 @@ echo "🧹 Cleaning up HarborForge Test containers..."
# Stop and remove containers, networks (keep images and volumes)
docker compose -f "$COMPOSE_FILE" down
# Also remove the wizard config volume
docker volume rm harborforgetest_wizard_config 2>/dev/null || true
echo "✅ Cleanup complete!"
echo ""
echo "To also remove volumes (completely clean slate):"
echo " docker compose -f $COMPOSE_FILE down -v"
echo ""
echo "To remove images (free disk space):"
echo " docker compose -f $COMPOSE_FILE down --rmi local"

View File

@@ -14,8 +14,8 @@ docker compose -f "$COMPOSE_FILE" run --rm test
TEST_EXIT_CODE=$?
echo ""
echo "🧹 Cleaning up containers (keeping images)..."
docker compose -f "$COMPOSE_FILE" down
echo "🧹 Cleaning up containers and volumes..."
docker compose -f "$COMPOSE_FILE" down -v
if [ $TEST_EXIT_CODE -eq 0 ]; then
echo "✅ Test passed!"