Skip to main content

Migrating to the Container registry from the Docker registry

GitHub will migrate Docker images previously stored in the Docker registry on to the Container registry.

GitHub Packages 适用于 GitHub Free、GitHub Pro、面向组织的 GitHub Free、GitHub Team, GitHub Enterprise Cloud, GitHub Enterprise Server 3.0 或更高版本以及 GitHub AE。
GitHub Packages 不适用于使用旧版按仓库计划的帐户所拥有的私有仓库。 此外,使用旧版按仓库计划的帐户无法访问 Container registry,因为这些帐户是按仓库计费的。 有关详细信息,请参阅“GitHub 的产品”。

About the Container registry

Container registry 将容器映像存储在组织或个人帐户中,并允许你将映像与存储库相关联。 可以选择是从存储库继承权限,还是独立于存储库设置精细权限。 你也可以匿名访问公共容器映像。 For more information, see "Working with the Container registry."

About migration from the Docker registry

Container registry 替代 GitHub 的 Docker 注册表。 If you've stored Docker images in the Docker registry, GitHub will gradually migrate the images to the Container registry. No action is required on your part.

After a Docker image has been migrated to the Container registry, you'll see the following changes to the details for the package.

  • The icon will be the Container registry logo instead of the Docker logo.
  • The domain in the pull URL will be instead of

Screenshot of a Docker image migrated to the Container registry

任何使用 Docker 注册表 的命名空间的脚本或 GitHub Actions 工作流在迁移到 处的 Container registry 后都将继续工作。

After migration, you'll no longer be able to use the GraphQL API to query for packages with a PackageType of "DOCKER". Instead, you can use the REST API to query for packages with a package_type of "container". For more information, see "Packages" in the REST API documentation.

About billing for Container registry

For more information about billing for the Container registry, see "About billing for GitHub Packages."