Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Avoid that garbage_collector deletes images that are still in use #2051

Closed
2 tasks done
Bonko opened this issue Dec 7, 2018 · 1 comment
Closed
2 tasks done

Avoid that garbage_collector deletes images that are still in use #2051

Bonko opened this issue Dec 7, 2018 · 1 comment
Assignees

Comments

@Bonko
Copy link

Bonko commented Dec 7, 2018

Description

When having the newly introduced garbage_collector enabled, all tags older than the specified time are deleted, regardless if there are any (possible) used tags left.

This results in complete repositories that get deleted when images are not build regularly.

It would be a great help to ensure that tags that are still used are not deleted.
Using the tag parameter does not help here.

Ideas that came to my mind for this:

  • check if the tag was still accessed (pulled) during the specified older_than timeframe before deleting
  • add an option "keep_latest_x_tags" which lets you specify to always keep the newest X tags

Portus version: 2.4

@Bonko Bonko changed the title Avoid that garbage-collect deletes a complete repository Avoid that garbage_collector deletes images that are still in use Dec 7, 2018
@mssola
Copy link
Collaborator

mssola commented Dec 7, 2018

Makes total sense. Thanks for the feedback 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants