Replies: 2 comments 7 replies
-
Buildx will fetch your private image from GHCR if your I've answered the git repository question in the other discussion you opened here |
Beta Was this translation helpful? Give feedback.
-
Perhaps this approach will assist you. You must first obtain CR_PAT (container registery personal access token) in order to pull or use a private image into your GHCR. You are unable to pull any private packages from GHCR without PAT. To establish a new CR_PAT, take the following actions: ->
Simply copy the token into the Docker config.json file after obtaining the token.
Replace your code within this one,
Note: You should replace |
Beta Was this translation helpful? Give feedback.
-
Hi,
I experimented to understand how
Buildx
uses the--build-context
flag to fetch a private docker image from GHCR. Then I foundBuildx
can download the docker image from GHCR without being configured with any access token. I wonder howBuildx
fetches a private docker image?Also, I use
--build-context
to fetch a private git repository from GitHub andBuildx
encounters the authentication issue as expected.I saw two different behaviours by accessing the private registry and repository so I would like to know if this is common and how it makes it.
My test script is here and the private docker image is here.
Please feel free to let me know if this is an appropriate question. Thank you very much.
Have a good one.
Beta Was this translation helpful? Give feedback.
All reactions