Podman issues
Table of Contents
Podman accessing private images on Azure
This issue can arise when you try to access a private image in the Dockerfile of your project.
During the conveyor build
command you might get an error that says:
unable to retrieve auth token: invalid username/password: unauthorized: authentication required
This happens because the command az acr login
by default configures only docker, you need to change the login command to:
TOKEN=$(az acr login --name YOUR_REGISTRY --expose-token)
echo $TOKEN | jq -r ".accessToken" | podman login -u 00000000-0000-0000-0000-000000000000 --password-stdin $(echo $TOKEN | jq -r '.loginServer')
After this podman will be logged in on your azure registry and conveyor build
will work.