写天蓝色的Runbook推动码头图像到acr。当我运行脚本时,我收到错误docker不被识别为内部或外部命令。
简化的Runbook如下。
Import-Module hosts
Import-Module docker
Invoke-dockercommand -v
docker -v
当我在nunbook上面运行时,我遇到了错误。
Docker.exe : The term 'Docker.exe' 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 C:\Modules\User\Docker\Docker.psm1:41 char:5
有任何建议请。
提前致谢
Azure自动化不支持构建docker镜像,因此Runbook worker上没有docker。您可以使用混合工作者(以及您自己的代理)并在其上安装docker。
还有其他(可能更好的方法)这样做。与Azure容器注册表构建任务或CI \ CD管道一样。