![`buildah unshare`:错误执行:“buildah-script.sh”:在 $PATH 中找不到可执行文件](https://linux22.com/image/193242/%60buildah%20unshare%60%EF%BC%9A%E9%94%99%E8%AF%AF%E6%89%A7%E8%A1%8C%EF%BC%9A%E2%80%9Cbuildah-script.sh%E2%80%9D%EF%BC%9A%E5%9C%A8%20%24PATH%20%E4%B8%AD%E6%89%BE%E4%B8%8D%E5%88%B0%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%96%87%E4%BB%B6.png)
该命令buildah unshare buildah-script.sh
位于 中man buildah
,但是当我运行它时,我得到,
❯ buildah unshare buildah-script.sh
ERRO exec: "buildah-script.sh": executable file not found in $PATH
ERRO (unable to determine exit status)
ERRO exit status 1
这是与,
buildah version 1.19.6 (image-spec 1.0.1-dev, runtime-spec 1.0.2-dev)
答案1
您可以通过在脚本中添加前缀来解决这个问题./
buildah unshare ./buildah-script.sh