Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

lifecycle: which pid the Query State operation returns is underspecified #1166

Open
corhere opened this issue Oct 31, 2022 · 0 comments
Open

Comments

@corhere
Copy link
Contributor

corhere commented Oct 31, 2022

The "Query State" operation "MUST return the state of a container as specified in the State section." The State section defines the pid field as follows:

pid (int, REQUIRED when status is created or running on Linux, OPTIONAL on other platforms) is the ID of the container process.
For hooks executed in the runtime namespace, it is the pid as seen by the runtime.
For hooks executed in the container namespace, it is the pid as seen by the container.

"Query State" operation is not a hook, so it is ambiguous whether it should return the container pid as seen by the runtime or as seen by the container.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant