pyronear / pyronear/pyro-engine
Add Docker cleanup strategy to prevent storage drift on Pi/server
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 19
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Pitch
Each deploy creates a new container (old one is explicitly removed),
orphaning its logs and leaving dangling images from the local build.
On a Pi/server with limited storage this accumulates silently.
Technical suggestions
Two options to discuss:
- Deploy-time: add a
docker system prune -ftask in the engine role
(or deploy-engines playbook), runs on each deploy - Cron: add a periodic
docker system prune -finengine_cronrole,
decoupled from deploy
Note: avoid docker system prune -af in cron — would delete local tagged
images if container is temporarily stopped.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the engine role, deploy-engines playbook, and engine_cron role to compare where cleanup could run. First resolve whether cleanup belongs at deploy time or on a cron, then define validation for docker system prune -f while preserving local tagged images; the issue is done when one approach is selected and implemented safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100