I am using the Matlab Docker Image to run Matlab in a Container and do calculations within it. https://github.com/mathworks-ref-arch/matlab-dockerfile
When you common