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... :(
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: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... :(