Using Azure Container Registry creating new Azure Container Instance from C#

后端 未结 2 1806
忘了有多久
忘了有多久 2021-01-19 06:46

I have created a Azure Container Registry, and uploaded a custom ACI to the registry - no problem - everything works as intended. I have tried creating an container instance

2条回答
  •  轮回少年
    2021-01-19 07:15

    I had the same problems for the last couple of weeks and I've finally found a solution. You should add your azure registry server name in front of the image name. So following your example change:

    .WithImage("mytestimage/latest")
    

    To:

    .WithImage("mytestreg.azurecr.io/mytestimage:latest")
    

    At least that did it for me, I hope it helps someone else.

提交回复
热议问题