Count number of allowed CPUs in a Docker container October 18, 2022 by Tarik You can use the nproc shell script tool. So it would be -j$(nproc) in the make command line in question.