Skip to content

Make Docker cleanup project-scoped#1725

Open
vaanuthanesh2003 wants to merge 1 commit into
pinterest:masterfrom
vaanuthanesh2003:fix-safe-docker-clean
Open

Make Docker cleanup project-scoped#1725
vaanuthanesh2003 wants to merge 1 commit into
pinterest:masterfrom
vaanuthanesh2003:fix-safe-docker-clean

Conversation

@vaanuthanesh2003

Copy link
Copy Markdown

Summary

Updates the clean_docker Makefile target to avoid using global Docker cleanup.

Previously, make clean ran docker system prune --volumes, which can remove unused Docker resources from unrelated projects on the developer's machine.

This change scopes Docker cleanup to Querybook's development and test Docker Compose resources instead.

Why

This prevents accidental deletion of Docker volumes, networks, and caches belonging to other local development projects.

Fixes #1663.

Testing

  • Ran make -n clean_docker to confirm Docker cleanup is scoped to Querybook Compose files
  • Ran make clean_docker and confirmed it no longer calls docker system prune --volumes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Critical Issue: make clean executes docker system prune --volumes, leading to unintended data loss

2 participants