Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update Docker tag using Docker task on Azure DevOps pipeline

I'm trying to change the tag of a Docker image using a Docker task on an Azure DevOps pipeline, without success.

Consider the following Docker image hosted on an Azure container registry:

Docker image

My task is configured as follows:

Docker task

$(DockerImageName) value is agents/standard-linux-docker2:310851

I'm trying to change the Docker image tag (e.g. to latest) but so far I wasn't able to make it work. I've also tried to set the arguments as well, without success.

Task fails with the following error message:

Error response from daemon: No such image: agents/standard-linux-docker2:310851

/usr/bin/docker failed with return code: 1

What am I missing here?

like image 755
Rui Jarimba Avatar asked Nov 03 '25 13:11

Rui Jarimba


1 Answers

Try using Azure CLI Task. Run the following command and select the options in the image.

az acr import --name xxxxxacr --source xxxxxacr.azurecr.io/xxx/xxx-api:stage --image xxxxyyyyyyy/yyyyyyyy-api:prod --force

enter image description here

like image 101
Karthikeyan VK Avatar answered Nov 06 '25 02:11

Karthikeyan VK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!