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

runtime: Only require 'pid' in the state for created/running statuses #664

Merged
merged 1 commit into from
Jan 23, 2017

Conversation

wking
Copy link
Contributor

@wking wking commented Jan 22, 2017

Because during creation (before created) we may not have a container process yet (e.g. if we're still reading the configuration or setting up cgroups), and in the stopped phase the PID is no longer meaningful.

Also add OPTIONAL/REQUIRED and remove colons for consistency with the config.md.

This documents (as best I can tell) the current semantics and gives #459 / #661 a well-defined REQUIREment to relax.

It's also the tip commit from #507 (currently at 08d52a0) cherry-picked onto master.

Because during creation (before 'created') we may not have a container
process yet (e.g. if we're still reading the configuration or setting
up cgroups), and in the 'stopped' phase the PID is no longer
meaningful.

Also add OPTIONAL/REQUIRED and remove colons for consistency with the
config.md.

Signed-off-by: W. Trevor King <wking@tremily.us>
@hqhq
Copy link
Contributor

hqhq commented Jan 22, 2017

LGTM

Approved with PullApprove

@crosbymichael
Copy link
Member

crosbymichael commented Jan 23, 2017

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 8df6024 into opencontainers:master Jan 23, 2017
@wking wking deleted the state-required-optional branch January 27, 2017 21:07
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

Successfully merging this pull request may close these issues.

3 participants