Emre
Emre

Reputation: 1103

What is the difference between GitHub Container Registry and Github Packages for Docker?

GitHub offers two options for storing container images as I understand it: Container Registry and Packages, but I think the difference is not clear. In a blog post, they say "With GitHub Actions, publishing to GitHub Container Registry is easy." but the given example pushes images to Packages, not Container Registry.

So, can those two platforms be used interchangeably and does one have an advantage over the other?

Upvotes: 5

Views: 3823

Answers (2)

vinod827
vinod827

Reputation: 1544

I guess the reason they are migrating is that they want to cut that name 'Docker' from the registry. The reason being 'Docker' is just another technology for creating images however you can use other CRI (Container Runtime Images) like cri-o, rkt, container-D. These are CNCF active projects. And down the line, container-D might replace the Docker completely as its popularity has increased a lot over the years. AWS ECS has started using the agent based on container-D in their ECS Instances, Kubernetes has stopped supporting Docker as default CRI from v1.22.

So GitHub wants their customer to use the term 'container' (which could be anything as it is generic) rather than just 'Docker' in the future.

Upvotes: 1

jonashackt
jonashackt

Reputation: 14489

As already stated by tgogos the GitHub docs guide on Key differences between GitHub Container Registry and the Docker package registry tells us:

The GitHub Container Registry supersedes the existing Packages Docker registry and is optimized to support some of the unique needs of containers.

TLDR; The GH Container Registry will replace the Packages Docker Registry. It also focusses more on the GitHub organization level then on a single repository. So you find your container images on the account level for example - and have to link them optionally later to a repository if needed. Additionally it features anonymous access to Docker images (see the GHCR intro post here).

Upvotes: 6

Related Questions