Open nicefuture2016 opened 1 month ago
Can the access index.docker.io
in the instance?
Can the access
index.docker.io
in the instance?
I do not understand , why is https://index.docker.io/v2/devops/rockylinux/manifests/9.3.20231119-minimal
,
my pull is private image with username and password, and config them in config.toml
crictl pull harbor-core.71djy.cn/devops/rockylinux:9.3.20231119-minimal
seems you fixed it with :https://github.com/dragonflyoss/helm-charts/pull/308
but i don`t work for me
@nicefuture2016 I haven't found a good way to support setting custom headers in mirror mode. However, setting custom headers is supported in multi registries mode.
Issues: https://github.com/dragonflyoss/Dragonfly2/issues/3372, https://github.com/dragonflyoss/helm-charts/pull/308.
Plan 1: Use registry config: https://d7y.io/docs/next/operations/integrations/container-runtime/containerd/#more-configurations https://github.com/containerd/containerd/blob/main/docs/hosts.md#registry-configuration---examples
Plan 2: Change the default mirror address configuration of dfdaemon so that all image pulling will use this default mirror, refer to https://d7y.io/docs/next/reference/configuration/client/dfdaemon/.
@nicefuture2016 I haven't found a good way to support setting custom headers in mirror mode. However, setting custom headers is supported in multi registries mode.
Issues: #3372, dragonflyoss/helm-charts#308.
Plan 1: Use registry config: https://d7y.io/docs/next/operations/integrations/container-runtime/containerd/#more-configurations https://github.com/containerd/containerd/blob/main/docs/hosts.md#registry-configuration---examples
Plan 2: Change the default mirror address configuration of dfdaemon so that all image pulling will use this default mirror, refer to https://d7y.io/docs/next/reference/configuration/client/dfdaemon/.
I noticed that both seedClient and client have the registryMirror field. Do I need to configure both of them?
seedClient:
config:
verbose: false
console: false
proxy:
server:
registryMirror:
addr: https://harbor-core.71djy.cn
client:
image:
registry: harbor-core.71djy.cn
repository: dragonflyoss/client
tag: v0.1.94
config:
verbose: false
console: false
metrics:
enable: true
initContainer:
image:
registry: harbor-core.71djy.cn
repository: dragonflyoss/busybox
tag: latest
dfinit:
enable: true
image:
registry: harbor-core.71djy.cn
repository: dragonflyoss/dfinit
tag: v0.1.94
config:
containerRuntime:
containerd:
configPath: /etc/containerd/config.toml
registries:
- hostNamespace: harbor-core.71djy.cn
serverAddr: https://harbor-core.71djy.cn
capabilities: ['pull', 'resolve']
proxy:
registryMirror:
addr: https://harbor-core.71djy.cn
Seed Client do not need to change.
1.values file
2.config.toml
3.containerd logs
4.dfdamon log