Unable to create online endpoint deployment using private Docker registry

Tomas Van Pottelbergh 0 Reputation points
2023-06-14T12:26:33.07+00:00

We are using a private Artifactory registry for our Docker images and have added a ContainerRegistry connection to the Azure ML workspace to authenticate.

This connection is working fine to run Jobs, but when creating online endpoint deployments we get the following error message:

{"level":"[ERROR]","ts":"Jun  13 13:30:39","logger":"VMAgent.ImageFetcher","caller":"imagefetcher/image_fetcher.go:641","msg":"ctr pull image failed","imageURL":"xxx.jfrog.io/xxx/xxx:v0.1.0","error":"exit status 1","stderr":"time=\"2023-06-13T13:30:39Z\" level=info msg=\"trying next host\" error=\"failed to authorize: failed to fetch anonymous token: unexpected status: 401 \" host=xxx.jfrog.io\nctr: failed to resolve reference \"xxx.jfrog.io/xxx/xxx:v0.1.0\": failed to authorize: failed to fetch anonymous token: unexpected status: 401 \n","stacktrace":"goms.io/azureml/mir/mir-vmagent/pkg/imagefetcher.(*ctrCommandExecutor).PullImage\n\t/mnt/vss/_work/1/s/pkg/imagefetcher/image_fetcher.go:641\ngoms.io/azureml/mir/mir-vmagent/pkg/imagefetcher.(*ImageFetcher).PullAllImages.func1.1\n\t/mnt/vss/_work/1/s/pkg/imagefetcher/image_fetcher.go:271\ngoms.io/azureml/mir/mir-vmagent/pkg/common.RetryWithCondition\n\t/mnt/vss/_work/1/s/pkg/common/code_util.go:29\ngoms.io/azureml/mir/mir-vmagent/pkg/common.Retry\n\t/mnt/vss/_work/1/s/pkg/common/code_util.go:22\ngoms.io/azureml/mir/mir-vmagent/pkg/imagefetcher.(*ImageFetcher).PullAllImages.func1\n\t/mnt/vss/_work/1/s/pkg/imagefetcher/image_fetcher.go:269\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/opt/hostedtoolcache/go/1.18.5/x64/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75"}

Is there a reason why the connection does not seem to work for deployments? How can this be fixed?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,620 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Guilherme Lima 10 Reputation points
    2024-05-14T16:43:31.3266667+00:00

    Hi, did you manage to figure out the solution?

    I'm also experiencing problems when using images from an Artifactory Docker registry and Microsoft documentation is very lacking in that regard.

    0 comments No comments

  2. Tomas Van Pottelbergh 0 Reputation points
    2024-05-21T09:35:27.8433333+00:00

    Microsoft Support confirmed that this feature is not supported for endpoints, so we had to migrate to Azure Container Registry.

    0 comments No comments