我创建了一个服务结构应用程序以在服务结构上部署docker映像。我能够在服务映像上成功部署应用程序,但无法从azure容器注册表中下载docker映像。
以下错误提示: 容器映像下载失败,授权尝试类型为ClusterManifestDefaultCredentials
ApplicationManifest.xml中的策略如下:
<Policies>
<ContainerHostPolicies CodePackageRef="Code" UseDefaultRepositoryCredentials="true">
<!-- See https://aka.ms/I7z0p9 for how to encrypt your repository password -->
<RepositoryCredentials AccountName="<reg-name>" Password="<pass>" PasswordEncrypted="false" />
<PortBinding ContainerPort="8888" EndpointRef="Guest_Container1TypeEndpoint" />
</ContainerHostPolicies>
</Policies>