Need an clarification to use Varnish cache to store docker images.

Guillaume Quintard guillaume.quintard at gmail.com
Mon Nov 21 22:50:53 UTC 2022


Hello Kavinnath,

The short answer is yes, but".

Varnish can happily front a docker registry, and it's only HTTP, but there
are a certain number of caveats:
- remember that docker, by default, doesn't like plaintext connections, so
you'll probably want to use a TLS-terminator in front of Varnish (
https://hub.docker.com/_/hitch)
- docker images can be quite big, so make sure to size Varnish properly.
- if you want to front the main docker registry in particular, you'll have
to deal with the token dance (
https://docs.docker.com/registry/spec/auth/token/) it requires. It's not a
problem in itself, but it requires some VCL to get it working.

If you have more questions, this mailing list will work very well for
asynchronous messaging, but know that there's also an IRC channel (
https://varnish-cache.org/support/#irc-channel) as well as a discord server
(https://discord.gg/EuwdvbZR6d) if you want something more synchronous.

Cheers,

-- 
Guillaume Quintard


On Mon, Nov 21, 2022 at 4:39 AM learner <kavinsethu at gmail.com> wrote:

> Hi Team,
>
> I hope this is the right place to ask doubts otherwise please redirect me
> to the right place.
> I would like to understand whether we can use varnish as proxy cache as
> frontend for docker registry. Hope varnish is able to cache docker images.
> If yes, Could you please share with me the rightful resources to explore
> further.
>
> --
> Kind Regards,
> Kavinnath
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20221121/d5ed96fc/attachment.html>


More information about the varnish-misc mailing list