Error Message: Failed to pull image “rkaks/dotnetcoresqldb:dev”: rpc error: code = Unknown desc = Error response from daemon: pull access denied for rkaks/dotnetcoresqldb, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied
I have my application’s docker image pushed into my Azure container registry at rkimacr.azurecr.io.
The Kubernetes Deployment manifest yaml file specifies the following:
spec: containers: - name: todolist image: rkimacr.azurecr.io/dotnetcoresqldb:dev
The error message indicates it may be an access issue, but I ensured that access is granted. So another troubleshooting step is to find out the image URI, by going to your ACR resource > Repositories, click into the repository of interest:
Update deployment manifest YAML image to rkimacr.azurecr.io/rkaks/dotnetcoresqldb:dev. I had missed the repository name rkaks in the path.
In conclusion, the root cause as the image URI was incorrect and the error was related to the message indicating the ‘repository does not exist’