Pull and Push Docker Image task to ACR fails in Azure Devops Pipeline unauthorized Invalid clientid or client secret

0 votes

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:

trigger: none

schedules:

- cron: "0 0 0 * *"

  displayName: **** *

  branches:

    include:

    - abcd

  always: true

pool:

  vmImage: 'ubuntu-latest'

variables:

- name: acrname

  value: *****.azurecr.io

stages:

- stage: abcd

  displayName: "pull images from acr"

  jobs:

  - job: abcdef

    displayName: "abcdef"

    pool:

      vmImage: ubuntu-latest

    steps:

      - task: Docker@2

        displayName: Login to ACR

        inputs:

          command: login

          containerRegistry: '*****.azurecr.io'

          

      - bash: |

            docker pull $(acrname)/abc-def:latest

            docker pull $(acrname)/igh-jkl:latest

        name: pull

        displayName: 'pull acr images'

Can someone find me a solution for this?

Mar 29, 2022 in Other DevOps Questions by Kichu
• 19,040 points
2,774 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
1 answer

How to configure and execute Azure Devops classic editor pipeline after commit in Github?

If you're looking for CI/CD triggers, all ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,086 views
+1 vote
2 answers

When do we use Chef or Azure SDK to create VM and deploy in automation

The solution to the automated deployment in ...READ MORE

answered Aug 21, 2018 in Other DevOps Questions by Priyaj
• 58,020 points
1,172 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,738 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP