Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routine Garbage Collection of Build Images #53

Open
BenGalewsky opened this issue Jun 20, 2023 · 0 comments
Open

Routine Garbage Collection of Build Images #53

BenGalewsky opened this issue Jun 20, 2023 · 0 comments
Assignees

Comments

@BenGalewsky
Copy link
Contributor

Problem

Docker images are built by the container service and are kept in the local docker image registry forever.

Approach

Add a cron job to the FastAPI server to occasionally issue a docker system prune --all command to clear old layers out. This will make the next build slow since we lose the expensive repo2docker base image.

Make the timing of the purge job configurable through the FastAPI config file.

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

No branches or pull requests

2 participants