`unauthorized: authentication required` on push to GitHub Container Registry.
IntermediateTroubleshootingRegistry, pull and push errors
Answer
Likely causes → Token lacks write:packages, not logged in to ghcr.io, or repo/package permissions not granting the workflow.
Diagnose → docker login ghcr.io -u USER; check package settings > Manage Actions access.
Fix → Use a PAT with write:packages or GITHUB_TOKEN with packages: write permission in the workflow; lowercase the image name.
Prevent → Grant least privilege explicitly in the workflow permissions:.
More on Registry, pull and push errors
`Error response from daemon: pull access denied for X, repository does not exist or may require 'docker login'`Intermediate`manifest for myapp:1.2 not found: manifest unknown: manifest unknown`Beginner`no matching manifest for linux/arm64/v8 in the manifest list entries`Intermediate`x509: certificate signed by unknown authority` on `docker pull` from a private registry.Intermediate`http: server gave HTTP response to HTTPS client`BeginnerECR: `denied: Your authorization token has expired. Reauthenticate and try again.`Beginner