DEV Community

Cover image for GitHub Container Registry: BETTER than Docker Hub?

GitHub Container Registry: BETTER than Docker Hub?

Davide 'CoderDave' Benvegnù on June 10, 2021

GitHub Container Registry improves how we handle containers within GitHub. Let's see what it is, how it works, and if it is better than Docker Hub....
Collapse
 
llbbl profile image
Logan Lindquist

Having it in Gitlab has been nice. Will be great when Github has feature parity on this.

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Not sure what you mean since this is in GitHub 😅

Collapse
 
llbbl profile image
Logan Lindquist

Gitlab has had it for a while, several years, and I am just saying it is nice that Github is catching up.

Thread Thread
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Ah ok, got it. Well, GitHub had it already but was, as GitHub Pacjages, limited to a single repo (even tho it could be used more widely thanks to some workaround)

Collapse
 
jonasbn profile image
Jonas Brømsø

I have been pondering on how to use GHCR instead of DockerHub for GitHub actions, but have not had the time to investigate on how to do the switch. A switch I think will be fairly trivial - any pointers/suggestions most welcome.

Collapse
 
factoidforrest profile image
Forrest

Can anyone tell me if these images load faster in github actions?

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

it should be slightly faster because they are hosted on the same infrastructure

Collapse
 
tomasbalaz profile image
Tomas Balaz

hi guys
do you know how to allow visibility of organisation images for anonymous user? images can be pulled anonymously but link to image in GHCR returns 404 if user is not logged in

Collapse
 
irveloper profile image
Irving Caamal • Edited

I've created a basic example of node/express app deployed into Azure using GitHub container registry here github.com/irvv17/deployment-nodea... . Great Tool.

Collapse
 
drsensor profile image
૮༼⚆︿⚆༽つ • Edited

If the project itself is publicly open, it's better to host the image container on IPFS too 😉
github.com/ipdr/ipdr

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Well, images hosted on GHCR can be publicly availbale to anyone :)

But I didn't know IPFS, let me take a look at it