在docker中通过java服务运行bash脚本时处理退出代码127

我在Docker中从java代码运行这个脚本,并且进程的退出代码是127。

process = Runtime.getRuntime().exec(commands); // commands is an array with script name and other variables defined in the script. process.waitFor();

openssl enc -d -aes-256-cbc -in $ENCRYPTED_TARBALL -out $OUTPUT_TAR -K $password

我确定在docker和脚本中安装了openssl,可以访问$ ENCRYPTED_TARBALL和$ OUTPUT_TAR。 如果脚本执行成功,应该创build$ OUTPUT_TAR文件。