When deploying containers using container instances service with images from a private registry either you have to provide user name and password or you can let container instances pull images from container registry . Here are the steps:
1 Create a dynamic group with Container Instances as the resource type. Add a rule with the following syntax:
ALL {resource.type='computecontainerinstance'}
2 Write the following policy to grant access for the dynamic group:
Allow dynamic-group ContainerInstanceDynamicGroup to read repos in tenancy
Note
CREATE_CONTAINER_INSTANCE work request will fail with the following message if you try to pull the image from a private registry without authentication.
A container's image could not be pulled because the image does not exist or requires authorization.