From 815ce4e2ebd74855ec2939abe6182b48ef053b96 Mon Sep 17 00:00:00 2001 From: Amit Saha Date: Fri, 6 May 2016 10:41:46 +1000 Subject: [PATCH] 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 --- specs-go/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs-go/config.go b/specs-go/config.go index 269819d81..fda11eec5 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -59,9 +59,9 @@ type Process struct { // main process. type User struct { // UID is the user id. (this field is platform dependent) - UID uint32 `json:"uid,omitempty" platform:"linux"` + UID uint32 `json:"uid" platform:"linux"` // GID is the group id. (this field is platform dependent) - GID uint32 `json:"gid,omitempty" platform:"linux"` + GID uint32 `json:"gid" platform:"linux"` // AdditionalGids are additional group ids set for the container's process. (this field is platform dependent) AdditionalGids []uint32 `json:"additionalGids,omitempty" platform:"linux"` }