Skip to content

dragonfly accesses the docker image on Google? #3981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zsksy123 opened this issue Apr 22, 2025 · 3 comments
Open

dragonfly accesses the docker image on Google? #3981

zsksy123 opened this issue Apr 22, 2025 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@zsksy123
Copy link

zsksy123 commented Apr 22, 2025

version information

NAME     	NAMESPACE	REVISION	UPDATED                             	STATUS  	CHART           	APP VERSION
dragonfly	dragonfly	17      	2025-04-22 11:10:55.795276 +0800 CST	deployed	dragonfly-1.1.32	2.1.31

My configuration is as follows

dfdaemon:
    config:
        resourceClients:
            https:
                proxy: "http://10.96.2.59:7890"
            http:
                proxy: "http://10.96.2.59:7890"

However, it has not taken effect.
Is there any problem with the configuration? I hope you can correct it.

@matiasinsaurralde @bergwolf @liubin @jim3ma Have you guys continued to maintain this project?

@zsksy123 zsksy123 changed the title How to configure a proxy server dragonfly accesses the docker image on Google? Apr 22, 2025
@gaius-qi
Copy link
Member

@gaius-qi gaius-qi added the help wanted Extra attention is needed label Apr 23, 2025
@zsksy123
Copy link
Author

zsksy123 commented Apr 25, 2025

@gaius-qi
Thank you for your reply. What I mean is that for some foreign mirror sites, can Dragonfly use the proxy I configured to pull content? Or, Drafongly automatically injects this proxy into certain configurations. When pulling images, will the overseas servers use this proxy?

Additionally, it seems that my configuration has not taken effect. The configuration is as follows.

client:
  enable: true
    config:
      # -- verbose prints log.
      verbose: true
      log:
        # -- Specify the logging level [trace, debug, info, warn, error]
        level: info
      proxy:
        # -- addr is the proxy server address of dfdaemon.
        addr: http://127.0.0.1:4001
      containerRuntime:
        containerd:
          # -- configPath is the path of containerd configuration file.
          configPath: /etc/containerd/config.toml
          registries:
            - hostNamespace: docker.io
              serverAddr: https://index.docker.io
              capabilities: ["pull", "resolve"]
              skipVerify: true
              # ca: []
            - hostNamespace: ghcr.io
              serverAddr: https://ghcr.io
              capabilities: ["pull", "resolve"]
              skipVerify: true
              # ca: []
            - hostNamespace: gcr.io
              serverAddr: https://gcr.io
              capabilities: ["pull", "resolve"]
              skipVerify: true
              # ca: []

The version information is as follows

Image

@zsksy123
Copy link
Author

zsksy123 commented Apr 28, 2025

@gaius-qi Let me briefly describe my requirement. Could I inject an env variable into dragonfly to pull the image from Google? Is there such a configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants