From 46510e5ce027dbb1a3beee91764f753ab9afef80 Mon Sep 17 00:00:00 2001 From: Gaius Date: Fri, 11 Nov 2022 17:12:21 +0800 Subject: [PATCH] docs: add dragonfly detailed documentation Signed-off-by: Gaius --- docs/integration.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/integration.md b/docs/integration.md index 2f4e706e9..168c1c500 100644 --- a/docs/integration.md +++ b/docs/integration.md @@ -175,7 +175,21 @@ See [`./ipfs.md`](./ipfs.md) ### Dragonfly -See [the document in Dragonfly project for how to use dragonfly with eStargz](https://d7y.io/docs/setup/integration/stargz/). +Change the `/etc/containerd-stargz-grpc/config.toml` configuration to make dragonfly as registry mirror. +`127.0.0.1:65001` is the proxy address of dragonfly peer, +and the `X-Dragonfly-Registry` header is the address of origin registry, +which is provided for dragonfly to download the images. + +```toml +[[resolver.host."docker.io".mirrors]] + host = "127.0.0.1:65001" + insecure = true + [resolver.host."docker.io".mirrors.header] + X-Dragonfly-Registry = ["https://index.docker.io"] +``` + +For more details about dragonfly as registry mirror, +refer to [How to use Dragonfly With eStargz](https://d7y.io/docs/setup/integration/stargz/). ## Registry-side conversion of eStargz