sheffield_hpc icon indicating copy to clipboard operation
sheffield_hpc copied to clipboard

Apptainer: Dockerfile WORKDIR ignored; WORKDIR != APPTAINER_WORKDIR

Open willfurnass opened this issue 1 year ago • 0 comments

  • 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.

willfurnass avatar Jun 02 '23 12:06 willfurnass