Transfer: Registry: Enable to use registry configuration diretory

Currently transfer service isn't aware of configurations of hosts directory and
ctr's `--hosts-dir` doesn't work.
This commit fixes this issue by using `config.ConfigureHosts` instead of
`docker.ConfigureDefaultRegistries`.
This commit also fixes ctr to use this feature for "--hosts-dir" flag.

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2024-02-29 15:26:59 +09:00
parent 7f0f49b438
commit 7a3b7fba59
6 changed files with 124 additions and 63 deletions

View File

@@ -7461,6 +7461,13 @@ file {
type_name: ".containerd.types.transfer.RegistryResolver.HeadersEntry"
json_name: "headers"
}
field {
name: "host_dir"
number: 3
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "hostDir"
}
nested_type {
name: "HeadersEntry"
field {