---
title: "ghcr.io 是什么？阻止它会有什么影响 · Kilobat"
url: "https://kilobat.app/zh-hans/hosts/ghcr-io"
description: "ghcr.io 是 GitHub Container registry，用于拉取和推送容器镜像。它的作用，以及阻止它会影响什么。"
---

# ghcr.io 是什么？

`ghcr.io` 是 GitHub Container registry 的地址。它为个人账户和组织存储容器镜像。

由 GitHub 运营 · 端口：443 TCP · 核查日期：2026 年 11 月 7 日

## 简短回答

GitHub Container registry 的地址。Docker 和类似工具会从中拉取和推送镜像。

谨慎阻止

阻止它会让使用 `ghcr.io` 名称的镜像拉取和推送停止。其他镜像仓库不受影响。

匹配

`ghcr.io`

带有 `*.` 的名称涵盖它之下的每个名称：`*.push.apple.com` 匹配 `1-courier.push.apple.com`。

## 它提供什么

该仓库在你的组织或个人账户内存储容器镜像。它支持 Docker Image Manifest V2、Schema 2 和 OCI 镜像。

你可以用类似 `ghcr.io/NAMESPACE/IMAGE_NAME` 的名称拉取镜像，可以按标签或摘要拉取。

推送时，你需要使用个人访问令牌（classic）登录。首次发布软件包时，其默认可见性为私有。

GitHub 的 runner 页面将 `ghcr.io` 列为向 GitHub Packages 下载或发布软件包或容器所需的主机。

BrewTestBot 会将每个 bottle 上传到 GitHub Packages。

## 阻止它会造成什么问题

谨慎阻止

阻止它会让使用 `ghcr.io` 名称的镜像拉取和推送停止。其他镜像仓库不受影响。

阻止它会造成什么问题

- 针对 ghcr.io 镜像的 docker pull 和 docker push 会失败。
- 从 GitHub Packages 下载软件包的工具会失败。

使用 Kilobat Pro 和网络过滤器，你可以对所有 App 或某一个 App 阻止某个主机：在“连接”中选择一个连接，然后选择“阻止”。Apple 自己的服务绝不会被 Kilobat 的[防护](https://kilobat.app/zh-hans/docs/blocking#protection)列表阻止。

## 参考资料

- [GitHub Docs：使用 Container registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry)
- [GitHub 文档：自托管运行器，通信要求](https://docs.github.com/en/actions/reference/runners/self-hosted-runners)
- [Homebrew 文档：Bottles](https://docs.brew.sh/Bottles)

核对于 2026 年 11 月 7 日。

## 相关

- [github.com](https://kilobat.app/zh-hans/hosts/github-com): GitHub 的主主机。Git 克隆和推送、网站和登录都会用到它，GitHub 的运行器和插件工具也把它列为必需。
- [formulae.brew.sh](https://kilobat.app/zh-hans/hosts/formulae-brew-sh): Homebrew 的 Formulae 网站及其 JSON API。brew 从中读取软件包元数据，Claude Code 的更新检查也会用到它。
