-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying container app with private docker.io image fails #352
Comments
Same problem happening here. Adding more information:
Using
|
The image string should be
We match the server part of the value in the |
I got the following CLI command to work with my private DockerHub registry. |
The following field(s) are either invalid or missing. Field 'template.containers.mywebsite-web-server.image' is invalid with details: 'Invalid value: "docker.io/docker.io/myimage:latest": GET https:: UNAUTHORIZED: authentication required';. (Code: InvalidParameterValueInContainerTemplate) Naming image to |
In my case changing registry from |
@BigMorty how could we go about getting the solution mentioned in this thread in the documentation? The documentation states that you use docker.io: https://learn.microsoft.com/en-us/azure/container-apps/containers#container-registries Thank you! |
@anthonychu - Can you help with this? |
Just had this issue while creating my first Container App through the portal. What fixed it was ats1999's suggestion of using This was pretty annoying as cpellensap is right, both the docks and the default placeholder urls are docker.io but cause this whole issue. It's doubly annoying because I am not able to edit the registry url after failing to create the Container App for the first time. I can't create a new revision to change the image because there is no revision to base it off of since the Container App failed to create. I instead have to delete the whole container app and recreate it with different registry settings. I don't understand why this issue is closed. The problem still exists. |
This issue is a: (mark with an x)
Issue description
When trying to deploy a container app with a container image i a private docker registry you receive the following error:
The following field(s) are either invalid or missing. Invalid value: "<registry>/<image>:<tag>": GET https:: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:<registry>/<image> Type:repository]]: template.containers.<containername>.image.
Steps to reproduct
az containerapp create -n <name> -g <resourcegroup> --environment <environment> --yaml "<yaml-file>"
Expected behavior [What you expected to happen.]
Successfully deployed container app
Actual behavior [What actually happened.]
Deployment fails
Screenshots
Additional context
Ex. Did this issue occur in the CLI or the Portal?
Same issue occurs in both CLI and Portal
The text was updated successfully, but these errors were encountered: