Skip to content

mirror of the Docker Registry #1718

Description

@rrgadeev

Hello, I'm connecting to the docker

Deployed dragonfly 2.4.1 and client 1.2.10.
Docker version 29.2.1, works with containerd support.

I have set up a docker connection to dragonfly:

/etc/docker/certs.d/harbor.domain.local/hosts.toml

[host."http://127.0.0.1:4001"]
  capabilities = ["pull", "resolve"]
  skip_verify = false
[host."http://127.0.0.1:4001".header]
  X-Dragonfly-Registry = "https://harbor.domain.local"

And lo and behold, it works, it would be nice if you added it to the documentation. This would make it much easier for me to implement.

My question is how to set up a mirror via harbor.

Current mirror setup docker.io:
/etc/docker/certs.d/docker.io/hosts.toml

server = "https://registry-1.docker.io"
[host."https://harbor.domain.local/v2/docker.io"]
  capabilities = ["pull", "resolve"]
  override_path = true
  skip_verify = false

It surprisingly works.

I would like to wrap the mirror in some way. docker.io in dragonfly, so that the request goes to harbor.domen.local.
Is there a way to do this using dragonfly?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions