From 223acbca2a018a7db68b0041798e2e05a979001d Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Wed, 3 Oct 2018 10:43:29 -0700 Subject: [PATCH] Skip AdditionalGID's for LCOW oci spec Signed-off-by: Justin Terry (VM) --- oci/spec_opts.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oci/spec_opts.go b/oci/spec_opts.go index ab61d9b26..8b599f805 100644 --- a/oci/spec_opts.go +++ b/oci/spec_opts.go @@ -654,6 +654,10 @@ func WithUsername(username string) SpecOpts { // The passed in user can be either a uid or a username. func WithAdditionalGIDs(userstr string) SpecOpts { return func(ctx context.Context, client Client, c *containers.Container, s *Spec) (err error) { + // For LCOW additional GID's not supported + if s.Windows != nil { + return nil + } setProcess(s) setAdditionalGids := func(root string) error { var username string