Azure runbook for docker container

我是研究僧i 提交于 2019-12-11 18:43:22

问题


writing azure runbook for pushing docker image to acr. When i am running script i am getting error docker is not recognized as internal or external command.

Simplified runbook as below.

Import-Module hosts
Import-Module docker
Invoke-dockercommand -v
docker -v

When i run above nunbook i am getting below error.

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

Any Suggestion please.

Thanks in Advacne


回答1:


Azure Automation doesnt support building docker images, so there is no docker on the runbook workers. You can use hybrid workers (so your own agents) and install docker on those.

There are other (possibly better ways) of doing this. Like Azure Container Registry build tasks or CI\CD pipelines.



来源:https://stackoverflow.com/questions/55117948/azure-runbook-for-docker-container

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!