microsoft / containerregistry

Microsoft Artifact Registry description and related FAQ
397 stars 89 forks source link

Using azureml images in Azure DevOps pipelines #123

Closed Borda closed 4 months ago

Borda commented 2 years ago

I am trying to run the following image mcr.microsoft.com/azureml/minimal-ubuntu20.04-py38-cpu-inference:latest in Azure DevOps pipelines on a scale set composed of B2s machines. But it seems it does not start for a missing user:

/usr/bin/bash
whoami 
AzDevOps
id -u AzDevOps
1001
Try to create a user with UID '1001' inside the container.
/usr/bin/docker exec  0d9248a5c9832be4c2b3e711920a72a5161974ad0310e96af01c9710711f0427 bash -c "getent passwd 1001 | cut -d: -f1 "
/usr/bin/docker exec  0d9248a5c9832be4c2b3e711920a72a5161974ad0310e96af01c9710711f0427 useradd -m -u 1001 AzDevOps_azpcontainer
useradd: Permission denied.
useradd: cannot lock /etc/passwd; try again later.

In fact, I do ot need to use azureml image, but it was the only one found when I searched for keyword Ubuntu in the registry... :(

AndreHamilton-MSFT commented 4 months ago

Please see https://learn.microsoft.com/en-us/azure/machine-learning/how-to-troubleshoot-prebuilt-docker-image-inference?view=azureml-api-1 for troubleshooting help