SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.45k stars 3.18k forks source link

Userland: Invent a method to clean up system resources for containers that stopped running #24990

Open supercomputer7 opened 3 weeks ago

supercomputer7 commented 3 weeks ago

This issue is intended to be a place to discuss what's the best approach on this matter.

As it is right now, if we run a program with runc, and that program exits, then we have a dangling VFS root context (or other resources that might not be cleaned up automatically) that nobody uses anymore, but nothing is responsible to clean it up in such case.

The solutions I have in my mind:

Maybe there are more options so feedback on this topic is appreciated :)

VyankateshRohokale commented 3 weeks ago

I guess we can add this method in it , it will be easy in my opinion...maybeee