Currently this is only possible for "early access users" who have accounts at NERSC.

Example slurm script submitted with "sbatch <scriptname>" ("srun" is the cray-equivalent of "mpirun"):

#!/bin/bash
#SBATCH -p regular
#SBATCH -N 1
#SBATCH -t 01:00:00
#SBATCH -A lcls
#SBATCH --image=docker:registry.services.nersc.gov/psana:ana-0.17.4a
module load shifter
cd $HOME/shifter
srun -n 32 shifter ./myjob.csh

Where my job.csh looks like the usual psana-python command:

#!/bin/tcsh
source /reg/g/psdm/etc/ana_env.csh
cd $HOME/shifter
setenv SIT_PSDM_DATA /global/projecta/projectdirs/lcls/psdm
python psana_io_benchmark.py exp=cxig3614:run=81