-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Private docker hub image example #9799
Comments
Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate. |
Hi @dankellett, thanks for the feedback. Were you interested in seeing how to do so in the portal specifically, or pulling an image from a private repository in general? |
I was interested in the portal, but I'd also be interested in cli. When I attempted this myself, I was having trouble getting authentication to work correctly against the hub.docker.com repo. |
Thanks, @dankellett, my apologies for the slow reply, here. To deploy to ACI from a private Docker Hub repository, the Image registry login server must be If you could, can you give that a try and let us know how it goes? Thanks, -MM |
Hi @dankellett, checking in to see if you've had a chance to give this a try. |
Hi @mmacy, I attempted following your example and I am getting a deployment failure. I've entered my regular docker hub credentials, verified correct password a few times. {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"BadRequest","message":"{\r\n "error": {\r\n "code": "InaccessibleImage",\r\n "message": "The image 'mrdankellett/gettingstarted' in container group 'kelletttest3' is not accessible. Please check the image and registry credential."\r\n }\r\n}"}]} |
@dankellett Hmm...I'm unable to repro this issue. To mirror as closely as possible your environment, I deleted all other images out of my repository, save for my private "aci-helloworld" repo, deployed to West US 2 in a new RG named "containerrg," and was able to deploy successfully. Even bumped my password length such that it was longer than yours, just in case. I assume you are able to @yangl900 Anders, might you have any ideas on this one? Dan is unable to deploy from a private Docker Hub repo, and as far as I can tell, everything looks OK. |
I was missing the correct tag, I added the "latest" default tag to the image and this now works for me. |
I think it might be a good idea to add this to the docs still, if it hasn't been already. I've been struggling with this for a good 30 minutes trying to figure out how to deploy from a private image on Docker Hub. As far as I can tell, there's tons of documentation for deploying from ACR, but nothing for deploying from Docker Hub. The thing that tripped me up was the "Image registry login server". I tried docker.com, hub.docker.com, with protocols, without protocols, with |
I had some trouble to get my private docker hub images running and basically found the only answer [here](MicrosoftDocs#9799 (comment)).
This should deffo be in the docs if it isn't already |
It would be great to see an example showing how to configure a container instance to pull from a private docker hub image.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: