Docker Community Forums

Share and learn in the Docker community.

Error on running file with mounted volume

I get the following error when I run the “mpirun -n 1 main” command when I open a container on docker using host volume (like this: docker run -it -v (host/directory):(container directory) image).

However, I don’t get this error when I don’t use the volume feature (like this: docker run -it image).

What could be the reason for this?