▲ | esafak 3 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
What's the easiest way to cache registries like docker, pypi, and npm these days? | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | lambda 3 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
The images I use the most, we pull and push to our own internal registry, so we have full control. There are still some we pull from Docker Hub, especially in the build process of our own images. To work around that, on AWS, you can prefix the image with public.ecr.aws/docker/library/ for example public.ecr.aws/docker/library/python:3.12 and it will pull from AWS's mirror of Docker Hub. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | pm90 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Someone mentioned Artifactory; but its honestly not needed. I would very highly recommend an architecture where you build everything into a docker image and push it to an internal container registry (like ecr; all public clouds have one) for all production deployments. This way, outages only affect your build/deploy pipeline. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | viraptor 3 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||
You pull the images you want to use, preferably with some automated process, then push them to your own repo. And anyways use your own repo when pulling for dev/production. It saves you from images disappearing as well. | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
▲ | holysoles 3 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||
Another reply had some good insight: https://news.ycombinator.com/item?id=45368092 |