Azure Devops Pipeline Caching for docker images returns error

vix 0 Punti di reputazione
2025-02-28T16:28:51.4666667+00:00

I created an Azure Pipeline to build a docker container for arm64 architecture (so it's a cross build).

It works.

Then I tried to create a Pipeline Caching as explained here but the last step "Docker save" fails with error

========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/7d13b438-9bad-4bf5-8087-df27d21fd4f1.sh
Error response from daemon: invalid reference format

##[error]Bash exited with code '1'.
Finishing: Docker save

I don't understand what is the reason, because after "Error response from daemon: invalid reference format" I cannot see a reason for the invalid format.

I add that I use a Docker@2 task of 'buildAndPush' (not only build) and the image has been pushed to a private Azure Container Registry.

The pipeline itself has access through a Service Connection specified in the docker buildAndPush as conatinerRegistry parameter.

Should I specify in some way the access to ACR in the "docker save" too?

How?

Can someone help?

Microsoft Q&A
Microsoft Q&A
Usare questo tag per condividere suggerimenti, richieste di funzionalità e bug con il team di domande e risposte Microsoft. Il team di domande e risposte Microsoft valuterà regolarmente i commenti e suggerimenti e fornirà aggiornamenti lungo il percorso.
88 domande
0 commenti Nessun commento
{count} voti

Risposta

Le risposte possono essere contrassegnate come risposte accettate dall'autore della domanda. Ciò consente agli utenti di sapere che la risposta ha risolto il problema dell'autore.