代码之家  ›  专栏  ›  技术社区  ›  krishna bh

docker容器的Azure runbook

  •  0
  • krishna bh  · 技术社区  · 6 年前

    简化运行手册如下。

    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

    1 回复  |  直到 6 年前
        1
  •  0
  •   4c74356b41    6 年前

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

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