Mailing List Archive

Need an clarification to use Varnish cache to store docker images.
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
Re: Need an clarification to use Varnish cache to store docker images. [ In reply to ]
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@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@varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>