Docker 构建映像返回错误:lambci/lambda:术语"lambci/lambda"未被识别为 cmdlet、函数、脚本文件的名称



在windows 10 powershell中运行docker build命令时:

lambci/lambda: build-python3.7 -t rockar-data/lambda-layers .

我得到如下错误:

lambci/lambda: : The term 'lambci/lambda:' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ lambci/lambda: build-python3.7 -t school-data/lambda-layers .
+ ~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (lambci/lambda::String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

当有问题的字符串直接传递给powershell时,您将得到这样的消息,因为它应该知道如何处理。它接收到lambci/lambda:,但那不是可执行文件或有效命令的路径,所以它停止了。仔细看看你的脚本,看看它发生了什么,在某个地方,这一行单独出现,把事情搞砸了。

相关内容

  • 没有找到相关文章

最新更新