Lmod is usually deployed on shared hosts, but you can validate module behavior in containers.
docker run --rm -it ubuntu:24.04 bash -lc "apt-get update && apt-get install -y lmod && source /etc/profile.d/lmod.sh && module --version"