编写 azure runbook 以将 docker 映像推送到 acr。当我运行脚本时,我收到错误 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
请有任何建议。