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

Fix dotrun clean-cache command #35

Open
lyubomir-popov opened this issue Aug 11, 2020 · 3 comments
Open

Fix dotrun clean-cache command #35

lyubomir-popov opened this issue Aug 11, 2020 · 3 comments

Comments

@lyubomir-popov
Copy link

Currently, the only way to get rid of old cache is to uninstall and reinstall the snap. I had two folders, 32 and 33, which I assume are some sort of versions, full of 1GB of (mostly repeating) caches.

@jkfran
Copy link
Contributor

jkfran commented Jul 15, 2022

I am closing this issue as it doesn't affect dotrun v2. Thank you!

@jkfran jkfran closed this as completed Jul 15, 2022
@nottrobin
Copy link
Contributor

Are you sure? We've now introduced a cache volume - that could get big. Maybe worth having an option to clear it out.

@jkfran
Copy link
Contributor

jkfran commented Jul 15, 2022

We already had dotrun clean-cache but I just found out this one is not working, presumably because it should remove the items in the folder, not the folder itself:

dotrun clean-cache
Checking for dotrun image updates...

[ $ rm -rf /home/ubuntu/.cache ]

rm: cannot remove '/home/ubuntu/.cache': Device or resource busy

= `rm -rf /home/ubuntu/.cache` errored =

Okay, I will reopen this issue, but I will change the issue title.

@jkfran jkfran reopened this Jul 15, 2022
@jkfran jkfran changed the title Feature request: purge Fix dotrun clean-cache command Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants