Skip to content

Entrypoint Workaround

In case you're encountering difficulties to get your entrypoint working, the following solution should work:

  • make sure that in your Dockerfile, you copy your entrypoint bash script inside your container
  • replace --container-entrypoint with --no-container-entrypoint
  • manually excecute the entrypoint

Here's an example of what the solution would look like for a non-interactive job, with the entrypoint bash script being located under /home/user:

#!/bin/bash
#SBATCH --qos=low
#SBATCH --ntasks=1
#SBATCH --gpus-per-task=0
#SBATCH --cpus-per-task=4
#SBATCH --job-name=name
#SBATCH --mem=6G
#SBATCH --time=4:00:00
#SBATCH --container-mounts=/data/bodyct:/data/bodyct
#SBATCH --container-image="doduo1.umcn.nl#uokbaseimage/diag:tf2.10-pt1.12-v1"
#SBATCH --no-container-entrypoint

bash /home/user/start.sh