Skip to content
GitHub

Configure Docker OCI

Point Docker's registry mirrors at Depsilo's separate /v2/ route and complete the server-side setup.

BEFOREhttps://registry-1.docker.io
AFTERhttp://localhost:23333

Docker OCI uses the separate /v2/ route. It is a pull-through cache for images, not a general-purpose registry you can push to. The mirror URL is the Depsilo service root; Docker requests /v2/ itself, so do not append /docker/.

Merge the keys into your existing daemon JSON instead of overwriting it:

/etc/docker/daemon.json
{
"registry-mirrors": ["http://localhost:23333"],
"insecure-registries": ["localhost:23333"]
}

insecure-registries is only for HTTP, and Docker must be restarted after the change. containerd and Podman use the same service root; check their own documentation for the exact field.

  1. Restart Docker and confirm the mirror

    终端窗口
    docker info --format '{{json .RegistryConfig.Mirrors}}'
  2. Pull an image

    终端窗口
    docker pull alpine:3.20
  3. Confirm the traffic in Admin

    Check the /v2/ requests and hit results in Access logs.