Interview Prep/Docker/Registry, pull and push errors

`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:.

All Docker questions Roadmap: Docker & containers

More on Registry, pull and push errors