sheffield_hpc
sheffield_hpc copied to clipboard
Apptainer: Dockerfile WORKDIR ignored; WORKDIR != APPTAINER_WORKDIR
- Dockerfile
WORKDIR
: pwd inside container when launched -
APPTAINER_WORKDIR
,-W somestring
,--workdir somestring
: confusingly, working directory to be used for/tmp
,/var/tmp
and$HOME
(if-c
/--contain
was also used) - Apptainer users need to specify
APPTAINER_PWD=somestring
or--pwd somestring
at container launch time to control pwd inside containers.