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

add options to clean only part of the cache #3866

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Nov 4, 2022

Signed-off-by: Avi Deitcher avi@deitcher.net

- What I did

Extended lkt cache by adding some options:

  • cache clean --published-only will delete all images in the cache that are available on the registry. This is a nice way of saying, "remove anything from my cache that is publicly available"
  • cache rm a b c will delete specific images a, b, c
  • cache rm --published-only a b c will delete specific images a, b, c but only if they are published to the registry

- How I did it

Extending the commands.

- How to verify it

CI as usual, plus ran it locally with multiple setups.

- Description for the changelog

More fine-grained control over cache cleanup.

@deitch deitch force-pushed the cache-clean-published branch 3 times, most recently from fb46444 to dfb9145 Compare November 7, 2022 09:37
Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch merged commit 01c444e into linuxkit:master Nov 9, 2022
@deitch deitch deleted the cache-clean-published branch November 9, 2022 06:53
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

Successfully merging this pull request may close these issues.

None yet

1 participant