Fixing docker pull image “ghcr.io…” Unauthorized error


此文章有中文版本/This article is available in Chinese

Phenomenon

Error screenshot related to docker pull image GHCR unauthorized error

Solution

Everything went smoothly during the initial build, but when I started writing a tutorial, I encountered repeated Unauthorized errors while pulling the image.

URL to Adjust Settings

https://github.com/orgs/[XXX]/packages/container/[YYY]/settings

Replace [XXX] with your GitHub username and [YYY] with the project name.
For instance, after forking, my repository became HowieHz/umami. So, I accessed the following URL:

Adjusting Settings

  1. Navigate to the settings page using the URL constructed above.
  2. Enter the project name in the designated field.
  3. Click the red button to save changes.

Once the settings are updated, you’ll be able to pull the image successfully without encountering the error.

Step-by-step screenshots of the solution
Additional steps for resolving the issue

  • Fixing the GitHub Action Push to GHCR ‘403 Forbidden’ Error

To make searching easier, this article and the one linked above were extracted from the following article:
Addressing the Umami Active API Latency Issue