Multithreading not working with ninja and make with docker on windows 10 machine

Currently trying to develop on an ubuntu docker container, with a volume mounted to it from my windows 10 machine.

I can compile the software I’m working with just fine on a single thread, but when I attempt to add -j8 to the make command I get errors because it’s unable to find header files that definitely exist in the correct directories. The single threaded make is incredibly slow, and is very annoying when making changes. Is there support for this, or a work around that anybody knows about?

I would appreciate any help, thank you!

OS Version: Ubuntu