Skip to content
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

Closed
dankellett opened this issue Jun 6, 2018 — with docs.microsoft.com · 10 comments
Closed

Private docker hub image example #9799

dankellett opened this issue Jun 6, 2018 — with docs.microsoft.com · 10 comments

Comments

Copy link

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.

@mimckitt
Copy link
Contributor

mimckitt commented Jun 6, 2018

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

@mmacy
Copy link
Contributor

mmacy commented Jun 6, 2018

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?

@dankellett
Copy link
Author

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.

@mmacy
Copy link
Contributor

mmacy commented Jun 14, 2018

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 index.docker.io. For example, here are the settings I used to successfully deploy from my own private repository on Docker Hub:

image

If you could, can you give that a try and let us know how it goes?

Thanks, -MM

@mmacy
Copy link
Contributor

mmacy commented Jun 15, 2018

Hi @dankellett, checking in to see if you've had a chance to give this a try.

@dankellett
Copy link
Author

dankellett commented Jun 18, 2018

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}"}]}

image

@mmacy
Copy link
Contributor

mmacy commented Jun 18, 2018

@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 docker pull the image successfully using the Docker CLI, otherwise the image wouldn't already be in the registry, but can you confirm?

@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.

@dankellett
Copy link
Author

I was missing the correct tag, I added the "latest" default tag to the image and this now works for me.

@nozzlegear
Copy link

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 /v2, /login, etc., but never thought to try index.docker.io. I finally gave up and was about to just create an ACR so I could move on, and then I finally found the link to this issue at the bottom of the docs page.

robertmuehsig added a commit to robertmuehsig/azure-docs that referenced this issue Nov 12, 2018
I had some trouble to get my private docker hub images running and basically found the only answer [here](MicrosoftDocs#9799 (comment)).
@stevetownsend3
Copy link

This should deffo be in the docs if it isn't already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants