I'm working on this myself right now. As far as I understand it:
You need your host kernel to support the lustre module, and you need to install the lustre client at the place where you intend to mount the lustre filesystem. Then you would load the module at some point before you have to mount the filesystem.
If you intend to call mount -t lustre lustre_endpoint /mnt/my_lustre
from inside a container, your container will need to be privileged (i.e. docker run --privileged ...
) or will need to be granded special linux mount capabilities. Another option is to mount the lustre filesystem on the docker host (e.g. /mnt/my_lustre), and then use a volume mount or a bind mount to access a subportion of that into the container.
There are specific instructions if you're trying to use Lustre FSx (which is the AWS version of the Lustre service). To install the FSx modules and client libraries, you would need to follow the instructions here: https://docs.aws.amazon.com/fsx/latest/LustreGuide/install-lustre-client.html
Take special note of the kernel requirements. You may skip steps 1-6 if the kernel version you have is above the one listed.
For a vanilla Lustre filesystem (or a Lustre filesystem not managed by AWS), you should, probably, follow the instructions from the lustre project. Because then, there's nothing specific about AWS.