Re:Docker to rate limit image pulls
by efreak on Monday August 24, 2020 @09:37PM
(#24267397)
Personally, I wish generic caching proxies were still a thing, and easier to set up. I've tried setting up squid several times in the past, and failed miserably every single time--all I want to do is use it as a gateway (ie, make the proxy invisible to the application) for e.g. apt packages, so I just ended up using apt-cache or whatever other appropriate software, but I'd far rather use something generic that just works on 90% of the software I use at home, whether it's reading webcomics or repeatedly installing the same software in a dozen VMs with slightly different configurations, or even just browsing remote filesystems via webdav.
[ Parent
| on HN ]
I use nginx to proxy cache the Arch Linux package repository transparently. It's fairly easy to set up, and enables nice features like contacting a secondary mirror if the first one is down, or when multiple requests hit the same resource, all are blocked waiting for a single merged package download, so the proxy will not make the download multiple times if I run pacman -Syu on my 18 machines in parallel. And it's all just 20-30 lines of nginx config.
It's not transparent though.
Re:Docker to rate limit image pulls
by EnigmaCurry on Tuesday August 25, 2020 @02:55AM
(#24268737)
this is my way: https://github.com/EnigmaCurry/lazy-distro-mirrors