Skip to content

Commit 815ce4e

Browse files
committed
UID and GID for the main process are not optional
The spec requires UID and GID to be specified, so we shouldn't ignore if they are not specified. Signed-off-by: Amit Saha <[email protected]>
1 parent 38dd2fd commit 815ce4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs-go/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ type Process struct {
5959
// main process.
6060
type User struct {
6161
// UID is the user id. (this field is platform dependent)
62-
UID uint32 `json:"uid,omitempty" platform:"linux"`
62+
UID uint32 `json:"uid" platform:"linux"`
6363
// GID is the group id. (this field is platform dependent)
64-
GID uint32 `json:"gid,omitempty" platform:"linux"`
64+
GID uint32 `json:"gid" platform:"linux"`
6565
// AdditionalGids are additional group ids set for the container's process. (this field is platform dependent)
6666
AdditionalGids []uint32 `json:"additionalGids,omitempty" platform:"linux"`
6767
}

0 commit comments

Comments
 (0)