用于docker容器的Azure Runbook

问题描述 投票:0回答:1

写天蓝色的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 azure-powershell azure-automation azure-runbook
1个回答
0
投票

Azure自动化不支持构建docker镜像,因此Runbook worker上没有docker。您可以使用混合工作者(以及您自己的代理)并在其上安装docker。

还有其他(可能更好的方法)这样做。与Azure容器注册表构建任务或CI \ CD管道一样。

© www.soinside.com 2019 - 2024. All rights reserved.