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

Space issue - how to clean VM folder /sysroot/ostree/deploy/rhcos/var/lib/containers/storage/overlay #1746

Closed
JiriHusak-lab opened this issue Dec 3, 2020 · 3 comments

Comments

@JiriHusak-lab
Copy link

Hi,

I've realized that my CRC space issue is caused by the fact that Container data are not purged after Container is deleted.

This is VM folder, where container folder are created:
/sysroot/ostree/deploy/rhcos/var/lib/containers/storage/overlay

Each started container creates new folder here with Container content and when terminated - folder remains here.
One folder Example:
/sysroot/ostree/deploy/rhcos/var/lib/containers/storage/overlay/1d14f839a486d2ad3a4f3f959e87e704f8096d73ea1f2b730fb73ad167fe0f13

I tried (using some logic based on folder content) to delete folders created by my Pods but I've created too many so my CRC can't start and I've to delete and create cluster again. Ok, I can improve my process but it is danger and difficult.

So question - how to purge mentioned folder or how to set CRC to delete container folder on Container termination?
What I need to setup in CRC?

Now, each container restart add new folder, previous remain. So VM size is growing and growing.

Thanks a lot,
Jiri

@cfergeau
Copy link
Contributor

cfergeau commented Dec 3, 2020

Do these images show up in sudo podman images? If yes, I'd try sudo podman image prune and see if it helps.

@cfergeau
Copy link
Contributor

cfergeau commented Dec 3, 2020

Is this a duplicate of #1711 ?

@JiriHusak-lab
Copy link
Author

JiriHusak-lab commented Dec 3, 2020

Yes, after your reply I see it is the same.
And thanks a lot, seem it is working.
sudo podman image prune did not clean, it tried just dangling images but
this works properly: sudo podman image prune -a -f

So thanks again, This issue and #1711 can be closed now.

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

2 participants