nestybox / sysbox

An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs.
Apache License 2.0
2.78k stars 152 forks source link

Publish docker images to GitHub Container Registry #49

Closed felipecrs closed 4 years ago

felipecrs commented 4 years ago

Since Docker Hub has imposed pull rate limits, I'm not able to pull anything from there from my company anymore. So I have to manually mirror the image to another registry that I can access.

This is a suggestion for you to push the Docker images not only to Docker Hub, but also to the recently introduced GitHub Container Registry.

It would be awesome to be able to:

$ docker pull ghcr.io/nestybox/ubuntu-focal-systemd-docker

I strongly suggest using GitHub Actions to automate it :).

ctalledo commented 4 years ago

Thanks @felipecrs; let us take a look at the newly introduced GitHub Container Registry and see if we can push our images to that registry. We want to make it easy for anyone to use the existing images.

FYI, if you want to build the images yourself, the Dockerfiles are here:

https://github.com/nestybox/sysbox/tree/master/sys-container/dockerfiles

felipecrs commented 4 years ago

Thank you so much!

If you find it useful, you may take a look at how I just started to push one of my images to ghcr.io, in this PR: https://github.com/felipecrs/jenkins-agent-dind/pull/14.

It's extremely simple :-).

rodnymolina commented 4 years ago

@felipecrs, thanks for pointing this out and also for your suggestion. We will definitely take a look at this.

rodnymolina commented 4 years ago

@felipecrs, i finished uploading our docker images to github's container-registry, please give it a try when have a chance (e.g. "docker pull ghcr.io/nestybox/ubuntu-focal-systemd-docker").

Also, as suggested, i went ahead and created a github-action to automate the build&push process for both Dockerhub and Github registries.

Let us know if have any other suggestion. Thanks.

felipecrs commented 4 years ago

@rodnymolina it works very well! :D