创建Azure容器实例时出现的问题

时间:2019-09-15 19:07:13

标签: azure docker dockerfile azure-container-instances azure-container-registry

我能够运行docker映像,并且容器可以在本地正常工作。

在将docker映像推送到Azure容器注册表之后,我尝试通过Azure容器实例运行并抛出以下错误。 PS文件位于WORKDIR中,并且在本地工作。如果有人可以帮助,那就太好了。

Dockerfile

WORKDIR c:/inetpub/wwwroot
ENTRYPOINT powershell .\InitializeContainer

错误:

    .\InitializeContainer : The term '.\InitializeContainer' 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 line:1 char:1
+ .\InitializeContainer
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\InitializeContainer:String) [ 
   ], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

0 个答案:

没有答案