How to transfer/import Docker images signed with Notation from one container registry to another with signature?

Saurabh_Pilankar 0 Reputation points
2025-05-12T09:34:50.7933333+00:00

We have integrated the Notation CLI on our local machine and can successfully sign Docker images, as well as push the signed images to an Azure Container Registry (ACR). However, when we import these signed images from one ACR to another, the Notation signatures are lost. How can we transfer or import signed images between ACRs without losing their Notation signatures?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
508 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Dharani Reguri 1,175 Reputation points Microsoft External Staff Moderator
    2025-05-16T09:23:55.36+00:00

    Hi Saurabh_Pilankar,

    I tried repro doing in my lab and we can transfer signed images between ACRs without losing their Notation signatures. Here are the steps followed:

    I have created two ACRs; one as source ACR and another as Destination ACR and built a simple Docker image and pushed to source ACR.

    Before this I generated a Notation signing Key and added a certificate to the trust store and then signed the image with Notation.

    I have tried importing image from source ACR to the Destination ACR by following below command:

    oras copy -r sourceacr.azurecr.io/sourcerepo:sourcetag destacr.azurecr.io/destrepo:desttag
    

    User's image

    Then we can try checking the signature associated with the image by running the command below:

    notation ls destacr.azurecr.io/destrepo:desttag
    

    You can also check the portal for the signature associated with the image by navigating to the repository → Referrers → Artifacts. It shows the digest of the signature object.
    User's image

    Please refer to the documents about promoting the artifact and oras cp command

    If it was helpful, please click "Upvote" on this post to let us know.

    Thank You.

    1 person found this answer helpful.

  2. Saurabh_Pilankar 0 Reputation points
    2025-06-24T12:39:40.93+00:00

    @Dharani Reguri The -r flag used in the ORAS command is currently in preview.
    https://oras.land/docs/commands/oras_cp

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.