I tried pulling and pushing images or files from the local system and it works perfectly fine but when I tried with the Azure DevOps pipeline it fails. Docker login was successful but it fails when I want to pull the image from the acr with the following result:
Error response from daemon: Head "*/a2/abcd/manifest/latest": unauthorized: Invalid clientid or client secret.
My Yaml looks like this:
- cron: "0 0 0 * *"
displayName: **** *
- name: acrname
- stage: abcd
displayName: "pull images from acr"
- job: abcdef
- task: Docker@2
displayName: Login to ACR
- bash: |
docker pull $(acrname)/abc-def:latest
docker pull $(acrname)/igh-jkl:latest
displayName: 'pull acr images'
Can someone find me a solution for this?