pyronear / pyronear/pyro-engine

Add Docker cleanup strategy to prevent storage drift on Pi/server

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

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 -f task in the engine role
    (or deploy-engines playbook), runs on each deploy
  • Cron: add a periodic docker system prune -f in engine_cron role,
    decoupled from deploy

Note: avoid docker system prune -af in cron — would delete local tagged
images if container is temporarily stopped.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.