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

prune support (clean up build cache) #339

Open
Constantin07 opened this issue May 15, 2021 · 0 comments
Open

prune support (clean up build cache) #339

Constantin07 opened this issue May 15, 2021 · 0 comments

Comments

@Constantin07
Copy link

Docker has a nice feature to remove old things like:

docker system prune -fa

Am I supposed to delete images individually with img?

# img rm -h
rm -  Remove one or more images.

Usage: img rm [OPTIONS] IMAGE [IMAGE...]

Flags:
  -h, --help   help for rm

Global Flags:
  -b, --backend string   backend for snapshots ([auto native overlayfs]) (default "auto")
  -d, --debug            enable debug logging
  -s, --state string     directory to hold the global state (default "/root/.local/share/img")

The wildcard doesn't work either.

Yeah, I know about:

img ls | grep ... | awk ... | xargs img rm

but it would be nice to support clean up of build cache with an option.

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

1 participant