-
Notifications
You must be signed in to change notification settings - Fork 75
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 charmcraft purge
or charmcraft cleanall
command to clean all instances
#1042
Comments
Thanks for the suggestion! I've been in this same scenario before too.
Rockcraft recently got a new feature. When you uninstall rockcraft, it removes all rockcraft images and instances in lxd. If we added this to charmcraft, then uninstalling and re-installing charmcraft would solve your problem. However, that isn't a great user experience either. |
If it's just about naming then Not sure about cleanup on uninstall. Would be nice have charms continue to repack quickly across snap refresh. |
I like those ideas, I think something like For what it's worth, the remove hook doesn't run on a snap refresh, so the LXD instances are retained when updating. |
charmcraft clean --all
?charmcraft purge
or charmcraft cleanall
command to clean all instances
Perhaps a |
I just want to voice support for this feature (In any form) as having to manually delete bunch of containers every once in a while is just no fun. |
Docker has a That said, multipass uses |
Did not give it much thought, but something like |
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2551.
|
With fresh eyes I think There are several things we might want to clean up in this:
Since the pip cache is attached to a specific base image, removing a base image can automatically remove its pip cache. However, I've personally come across use cases where I want to clear the pip cache without removing any build images, so I'd like that to be possible too. |
So how about just prompting with a |
I imagine 80%+ of the time users would want to wipe it all, so personally I'd like the plain |
@sed-i I think with the
Then to limit further we could have:
|
@paulomach that's a possibility too, as long as we provide a way to do it non-interactively as well. I'd want I'll need to talk with the rest of the team though, as whatever gets decided for Charmcraft will likely become the standard for all craft applications (with obviously the relevant changes), so whatever we decide should be done carefully. |
If it helps, we could start with just But I wonder if the inverse is easier to grok and extend: charmcraft purge # all purged
charmcraft purge --keep-cache --keep-running --keep-builders # nothing purged |
Blocked by canonical/craft-providers#639 |
I ran out of space because
/var/snap/lxd/common/lxd/storage-pools/default/containers/charmcraft*
had a lot of stuff in it.I wonder if it makes sense to add a
--all
flag toclean
so it will run the equivalent of:More precisely,
Or, in nushell,
The text was updated successfully, but these errors were encountered: