Skip to content

GitHub 个人访问令牌 (PAT) 过期

如果您遇到以下错误,说明 Docker 无法与 GitHub 容器注册表 (ghcr.io) 进行身份验证:

错误

sh
  Error response from daemon: Head "https://ghcr.io/v2/coollabsio/coolify-helper/manifests/1.0.1": unauthorized: authentication required

sh
  Unable to find image 'ghcr.io/coollabsio/coolify-helper:latest' locally
  docker: Error response from daemon: Head "https://ghcr.io/v2/coollabsio/coolify-helper/manifests/latest": denied: denied

解决方案

您有两个选择:

  • 通过运行以下命令退出 GitHub 容器注册表 (ghcr.io):
    sh
      docker logout ghcr.io
  • 如果您需要为部署维护身份验证访问,请续订您的 GitHub 个人访问令牌 (PAT)。