Merge pull request #1665 from Mashimiao/gidmapping-valid-fix

specconv: avoid skipping gidmappings applied when uidmappings is empty
This commit is contained in:
Mrunal Patel 2017-12-11 09:50:54 -08:00 committed by GitHub
commit c6e4a1ebeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -620,9 +620,6 @@ func setupUserNamespace(spec *specs.Spec, config *configs.Config) error {
}
}
if spec.Linux != nil {
if len(spec.Linux.UIDMappings) == 0 {
return nil
}
for _, m := range spec.Linux.UIDMappings {
config.UidMappings = append(config.UidMappings, create(m))
}