Commit 46ef7ed
Fix docker volume prune command to properly remove volumes
The previous implementation used 'docker volume prune' which only removes
unused/dangling volumes. Volumes created by Docker Compose remain referenced
even after containers are stopped/removed, so prune wouldn't delete them.
Changed to explicitly list volumes by label filter and remove them using
xargs. This ensures all project volumes are deleted when running 'make prune'.
Changes:
- Replace 'docker volume prune' with 'docker volume ls | xargs docker volume rm'
- Add error suppression for cross-platform compatibility (BSD/GNU xargs)
- Add confirmation message showing which project's volumes were removed
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 8000305 commit 46ef7ed
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments