--container-image=[REGISTRY]/[IMAGE]:[TAG] (and optional --container-mounts) to srun or sbatch.
To run containers with Pyxis and Enroot, see Install software as containers using Pyxis and Enroot. To set up the AppArmor profile on managed Nodes, see Set up AppArmor profile for Enroot.
Troubleshooting
If a containerized job fails, start with the article that matches the error:- Why do sudo, chown, and chmod fail inside a Pyxis container?
- Why are Slurm commands not found inside a Pyxis container?
- Why does Pyxis report File already exists after a job is preempted?
- Why are CUDA toolkit libraries missing in a SUNK container?
Workload Scheduling