Skip to content

Commit cf55cdc

Browse files
committed
config: Move (u|g)idMappings from 'process' to 'linux'
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 <[email protected]>
1 parent 0982071 commit cf55cdc

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

config.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -286,20 +286,6 @@ Here is a full example `config.json` for reference.
286286
6
287287
]
288288
},
289-
"uidMappings": [
290-
{
291-
"hostID": 1000,
292-
"containerID": 0,
293-
"size": 32000
294-
}
295-
],
296-
"gidMappings": [
297-
{
298-
"hostID": 1000,
299-
"containerID": 0,
300-
"size": 32000
301-
}
302-
],
303289
"args": [
304290
"sh"
305291
],
@@ -463,6 +449,20 @@ Here is a full example `config.json` for reference.
463449
"gid": 0
464450
}
465451
],
452+
"uidMappings": [
453+
{
454+
"hostID": 1000,
455+
"containerID": 0,
456+
"size": 32000
457+
}
458+
],
459+
"gidMappings": [
460+
{
461+
"hostID": 1000,
462+
"containerID": 0,
463+
"size": 32000
464+
}
465+
],
466466
"sysctl": {
467467
"net.ipv4.ip_forward": "1",
468468
"net.core.somaxconn": "256"

0 commit comments

Comments
 (0)