Pull with Docker and Dragonfly¶
Assets are pulled like container images:
<docker proxy>/assets/<publisher>/<name>:<version>
What happens on pull¶
- The docker proxy forwards the pull to the registry proxy.
- If the registry does not have the manifest, the proxy looks up the asset in the index.
- An ingestion job downloads the asset from Hyperdrive, verifies its digest, and pushes it to the registry.
- The pull continues. Later pulls find it in the registry.
While ingestion takes longer than the proxy waits, it answers 503 with Retry-After, and clients try again.
Through Dragonfly¶
Peers use the node's df-proxy as registry mirror. Layers are then shared among peers:
curl -x http://peer:4001 http://df-proxy:8080/v2/assets/<publisher>/<name>/blobs/sha256:<digest>
Configure containerd to use the Dragonfly peer as a mirror on each node.
Push¶
Images can be pushed through the docker proxy with user pusher and PUSH_PASSWORD. Pulls need no credentials.