`buildah unshare`:错误执行:“buildah-script.sh”:在 $PATH 中找不到可执行文件

`buildah unshare`:错误执行:“buildah-script.sh”:在 $PATH 中找不到可执行文件

该命令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

相关内容