This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
How to setup Dragonfly as a pull-through cache proxy for non-central-hub registries #1511
Labels
kind/question
all questions or confusion about this project
Hi, Thanks for sharing the great project.
I would like to create dragonfly cluster as a pull-through cache proxy for private registies. But I'm confused in how to configure properly
Question
I set up my experimental environment with docker-compose(https://github.com/everpeace/test-dragonfly-proxy) by reading the document, especially for two documents below:
My environment consists of:
1
supernode2
dfdaemons (with docker daemons)quay.io
image blobsquay.io
as an insecure registry for dfdaemon's hijacking.docker pull
in dfdaemon nodes looks like pulling images through dragonfly successfully. However, it does NOT seem to cache images in dragonfly. The seconddocker pull
doesn't make it faster at all (see the next section). I'm wondering how to configure properly?? I'm very happy if I got the community's help.How to reproduce
$ git clone https://github.com/everpeace/test-dragonfly-proxy.git $ docker-compose up ... # press Ctrl-C to shutdown
In another terminal, please try to pull a sample image in
dfdaemon1
:you'll see below dfdaemon logs (it can see
dfdaemon
invokesdfget
):It is expected that
docker pull
indfdeamon2
makes it faster because dragonfly already cached. However, it takes almost the same time. And it can't appear anydownloading piece
dfdaemon logs described in https://github.com/dragonflyoss/Dragonfly/tree/master/docs/quick_start#step-5-validate-dragonfly .The text was updated successfully, but these errors were encountered: