--max-local-cores when running builds using ib_console in containers.
To allow Incredibuild to use all resources on the host machine of a container, use the switch --no-cgroups and do not use the --max-local-cores switch.
How to Use
Replace the container commanddocker, podman, or lxc -start with ib_docker, ib_podman, or ib_lxc -start when running a container. Also, use the ib_console build command when relevant. The -j number should also be increased in comparison to regular builds.
For example, if your docker command looks like this: