Py学习  »  docker

docker容器的Azure runbook

krishna bh • 4 年前 • 364 次点击  

简化运行手册如下。

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

当我在修女书上面跑的时候,我的错误就在下面了。

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

有什么建议吗。

感谢advacine

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/55428
 
364 次点击  
文章 [ 1 ]  |  最新文章 4 年前
4c74356b41
Reply   •   1 楼
4c74356b41    5 年前

Azure Automation不支持构建docker映像,因此runbook workers上没有docker。你可以使用混合工(所以你自己的代理)并在上面安装docker。

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