File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
libcontainer/configs/validate Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,12 @@ func rootlessMappings(config *configs.Config) error {
4343 if ! config .Namespaces .Contains (configs .NEWUSER ) {
4444 return fmt .Errorf ("rootless containers require user namespaces" )
4545 }
46- }
47-
48- if len (config .UidMappings ) == 0 {
49- return fmt .Errorf ("rootless containers requires at least one UID mapping" )
50- }
51- if len (config .GidMappings ) == 0 {
52- return fmt .Errorf ("rootless containers requires at least one GID mapping" )
46+ if len (config .UidMappings ) == 0 {
47+ return fmt .Errorf ("rootless containers requires at least one UID mapping" )
48+ }
49+ if len (config .GidMappings ) == 0 {
50+ return fmt .Errorf ("rootless containers requires at least one GID mapping" )
51+ }
5352 }
5453
5554 return nil
You can’t perform that action at this time.
0 commit comments