diff --git a/libcontainer/configs/validate/rootless.go b/libcontainer/configs/validate/rootless.go index 7a9f33b7..e532ac8f 100644 --- a/libcontainer/configs/validate/rootless.go +++ b/libcontainer/configs/validate/rootless.go @@ -49,7 +49,7 @@ func rootlessMappings(config *configs.Config) error { return fmt.Errorf("rootless containers requires at least one UID mapping") } if len(config.GidMappings) == 0 { - return fmt.Errorf("rootless containers requires at least one UID mapping") + return fmt.Errorf("rootless containers requires at least one GID mapping") } return nil