Merge pull request #2698 from jterry75/lcow_spec_opt

Skip AdditionalGID's for LCOW oci spec
This commit is contained in:
Derek McGowan 2018-10-03 13:58:09 -07:00 committed by GitHub
commit 0e6a562b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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