-
Notifications
You must be signed in to change notification settings - Fork 43
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
Expose number of containers attached to a conmon-rs process #2020
Comments
@haircommander PTAL |
would a ListContainers like API be useful? instead of just the number, include the IDs as well? |
Yes, that would be even better! |
Is this something we should handle directly in conmon-rs (the golang client/API of it)? |
@saschagrunert yes I believe so. The plan is to use a conmon-rs id (or whatever its unique attribute is) and call the conmon-rs API with that id to get a list of containers (or number of containers) currently attached to that conmon-rs process. This is the workflow I had in mind, but open to other ideas as well :) |
As part of the conmon-rs integration with podman, we need a way of querying conmon-rs to get the number of containers already attached to a single conmon-rs process.
This will help us determine whether to add a new container to an existing conmon-rs or to create a new conmon-rs process because we have reached the allowed limit.
Podman plans to keep a list of active conmon-rs processes so that we can go through those and query the number of containers attached to each one before making a decision.
The text was updated successfully, but these errors were encountered: