是的,你可以使用--pwd选项来指定运行时的工作目录。例如,你可以使用以下命令来切换到/path/to/directory目录并运行singularity容器中的命令:

singularity exec --pwd /path/to/directory image.sif command

这将切换到/path/to/directory目录并在容器中运行command命令。


原文地址: https://www.cveoy.top/t/topic/i63D 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录