繁体   English   中英

适用于 Docker 容器的 Azure Runbook

[英]Azure runbook for docker container

编写用于将 docker 映像推送到 acr 的 azure runbook。 当我运行脚本时,我收到错误 docker 未被识别为内部或外部命令。

简化的运行手册如下。

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 工作线程上没有 docker。 您可以使用混合工作人员(因此是您自己的代理)并在其上安装 docker。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM