Failed to pull image "ghcr.io..." Unauthorized #72198
Replies: 2 comments
This comment was marked as spam.
This comment was marked as spam.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I'm stuck trying to get the most basic private docker repository at ghcr.io to download images into minikube.
I've got a token that works for docker from github. I set the token to write:packages, delete:packages, and along the way that picks up read:packages. I followed these instructions: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
What I CAN do:
Upload docker image with the token. It's Alpine with a couple of extra packages.
Docker pull image using the exact url from the kubernetes file and the token.
docker log out, then docker log into the repo with the token.
What I've tried:
Added secrets to the namespace, specified them in the pod file.- Used directions from here to create the secret: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
What I cannot do:
Deploy a pod with the image.Error message:Error response from daemon: Head "https://ghcr.io/v2/my-user-name/my-prometheus/manifests/1.0": unauthorized
apiVersion: v1
kind: Pod
metadata:
name: private-reg
namespace: monitoring
spec:
containers:
image: ghcr.io/marquis-of-sandwiches/mp-prometheus:1.0
imagePullSecrets:
Here's logging from kubectl describe pod
Warning Failed 30m (x4 over 31m) kubelet Failed to pull image "ghcr.io/my-user-name/my-prometheus:1.0": rpc error: code = Unknown desc = Error response from daemon: Head "https://ghcr.io/v2/my-user-name/my-prometheus/manifests/1.0": unauthorized Warning Failed 30m (x4 over 31m) kubelet Error: ErrImagePull Warning Failed 30m (x6 over 31m) kubelet Error: ImagePullBackOff
Any ideas would be great
Beta Was this translation helpful? Give feedback.
All reactions