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
) if you want something more synchronous.
On Mon, Nov 21, 2022 at 4:39 AM learner <email@example.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
> Kind Regards,
> varnish-misc mailing list