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

Please provide an example for using a private docker image #1049

Closed
ryotatomioka opened this issue Jul 10, 2020 · 4 comments
Closed

Please provide an example for using a private docker image #1049

ryotatomioka opened this issue Jul 10, 2020 · 4 comments
Assignees
Labels
Environments Failures to provision environment MLOps product-question

Comments

@ryotatomioka
Copy link

ryotatomioka commented Jul 10, 2020

The documentation says

To use an image from a private docker repository, use the constructor's environment_definition parameter instead.

However I cannot find an example of environment definition using a docker image from a private repository. Could you provide such an example? For example, how can I authenticate with an Azure Container Registry?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@vizhur
Copy link
Collaborator

vizhur commented Jul 11, 2020

few examples here https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/training/using-environments/using-environments.ipynb

in Environment object docker section specifies base image name and container registry details. If that's in your WS ACR you can just specify fully qualified name and AzureML will be able to auth you. If it's coming from other ACR, please set base_image_registry of ContainerRegistry type and specify the address. Username and password are required if User Identity is not set

@vizhur vizhur self-assigned this Jul 11, 2020
@vizhur vizhur added the Environments Failures to provision environment label Jul 11, 2020
@ryotatomioka
Copy link
Author

Thanks @vizhur

  1. So from your message it sounds like there is an ACR for each Workspace? How can I access it? For example, how can I push an image to the registry?
  2. Regarding your last comment about authenticating with other ACRs, I understand that username and password is an option but I think it is less ideal because we don't want to have a password in the code. Another option seems to be to set an "User Identity". How can I set an User Identity?

@vizhur
Copy link
Collaborator

vizhur commented Jul 13, 2020

from you workspace overview page you can navigate to registry
image

if the base image in the same workspace, you do not need to provide username/password it will be resolved service side

@vizhur
Copy link
Collaborator

vizhur commented Jul 24, 2020

closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Environments Failures to provision environment MLOps product-question
Projects
None yet
Development

No branches or pull requests

3 participants