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

config: Move (u|g)idMappings from 'process' to 'linux' #390

Conversation

wking
Copy link
Contributor

@wking wking commented Apr 20, 2016

To match where they're defined in the JSON Schema. The old
location is from d4e7326 (config: JSON examples, 2016-04-06, #370),
and seems to have been accidental.

To match where they're defined in the JSON Schema [1].  The old
location is from d4e7326 (config: JSON examples, 2016-04-06, opencontainers#370),
and seems to have been accidental.

[1]: https://github.com/opencontainers/runtime-spec/blob/0982071b288ddddc1ae84d21c4bd682c96942f5c/schema/schema-linux.json#L21-L48

Signed-off-by: W. Trevor King <wking@tremily.us>
{
"hostID": 1000,
"containerID": 0,
"size": 32000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32000 looks like a non sense magic number, 32768 might be better, what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Wed, Apr 20, 2016 at 07:23:00PM -0700, Qiang Huang wrote:

@@ -463,6 +449,20 @@ Here is a full example config.json for reference.
"gid": 0
}
],

  •    "uidMappings": [
    
  •        {
    
  •            "hostID": 1000,
    
  •            "containerID": 0,
    
  •            "size": 32000
    

32000 looks like a non sense magic number, 32768 might be better, what do you think?

This PR is just about moving the existing example to the right place,
not about adjusting the example content.

If you want to file a separate issue/PR adjusting the number, that
size is from #370 based on @mrunalp's “32k” suggestion 1. I'm happy
with anything > 0 and still well short of overflowuid.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK if we do this in a separate PR, I think 32k is supposed to be 32768.

@hqhq
Copy link
Contributor

hqhq commented Apr 21, 2016

LGTM

1 similar comment
@crosbymichael
Copy link
Member

LGTM

@crosbymichael crosbymichael merged commit 77021d9 into opencontainers:master Apr 21, 2016
@wking wking deleted the example-move-id-mapping-from-process-to-linux branch April 21, 2016 16:37
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.

None yet

3 participants