Skip to content

Commit dbce512

Browse files
author
Michael Crosby
committed
Merge pull request opencontainers#425 from amitsaha/uid_gid_fix
UID and GID for the main process are not optional
2 parents 9066491 + 815ce4e commit dbce512

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)