How much resources are given to my windows containers?

Hello,

Regarding my question, I read there :

By default, a container has no resource constraints and can use as much of a given resource as the host’s kernel scheduler allows.

And also microsoft documentation says that :

By default, containers run are subject to typical Windows resource management

I am asking because even with a good spec :

  • 12th generation I9-12900
  • 32 gig of ram
  • 16 core
  • 24 logical core
  • windows 11 pro

It looks like my container doesn`t have enough resources for my build process, I have errors like this “compiler is out of heap space”

When I check the task manager, I can clearly see that not all CPU`s nor memory are used. DO I need to use --cpus and --memory to launch the container?