SepehrSabzContainer mirrors

Quay.io (quayio endpoint) / pull-through mirror

Use quayio.sepehrsabz.ir to pull public images from quay.io. Keep the original repository namespace and image tag.

Also available: quay.sepehrsabz.ir setup guide. Each hostname must be configured as its own registry endpoint.

01 ? DOCKER ENGINE / DESKTOP

Pull directly from the mirror

Replace quay.io in the image reference with quayio.sepehrsabz.ir. This works in Docker Engine, Docker Desktop, and Compose image fields.

shell
docker pull quayio.sepehrsabz.ir/prometheus/prometheus:latest

# Optional: retain the original local image name
docker tag quayio.sepehrsabz.ir/prometheus/prometheus:latest quay.io/prometheus/prometheus:latest

Docker's registry-mirrors setting applies to Docker Hub, so it does not redirect quay.io pulls. Use the explicit mirror hostname.

02 ? PODMAN / CRI-O

Configure a Quay.io (quayio endpoint)-specific mirror

Merge this entry into the containers registry configuration. Unavailable images fall back to the upstream registry.

/etc/containers/registries.conf.d/quayio.conf
[[registry]]
prefix = "quay.io"
location = "quay.io"

[[registry.mirror]]
location = "quayio.sepehrsabz.ir"

Podman reads this on subsequent pulls. For CRI-O, apply the configuration through your node management process and reload the runtime as required.

03 ? CONTAINERD

Configure the quay.io registry namespace

Create /etc/containerd/certs.d/quay.io/hosts.toml with the following content:

/etc/containerd/certs.d/quay.io/hosts.toml
server = "https://quay.io"

[host."https://quayio.sepehrsabz.ir"]
  capabilities = ["pull", "resolve"]

Enable config_path = "/etc/containerd/certs.d" in the existing CRI registry section of /etc/containerd/config.toml: plugins."io.containerd.grpc.v1.cri".registry for containerd 1.x or plugins."io.containerd.cri.v1.images".registry for 2.x. Restart containerd after changing its main config. CRI-O uses the Podman configuration above.

04 ? OPENSHIFT

Mirror digest-based image pulls

Apply this resource with your cluster's supported configuration process. This policy handles digest references; tag references require an ImageTagMirrorSet or the explicit mirror hostname.

ImageDigestMirrorSet
apiVersion: config.openshift.io/v1
kind: ImageDigestMirrorSet
metadata:
  name: quayio-mirror
spec:
  imageDigestMirrors:
    - source: quay.io
      mirrors:
        - quayio.sepehrsabz.ir
05 ? VERIFY

Check connectivity and pull an image

shell
curl -i https://quayio.sepehrsabz.ir/v2/
docker pull quayio.sepehrsabz.ir/prometheus/prometheus:latest

# For Podman after configuring the registry mirror
podman pull quay.io/prometheus/prometheus:latest

The registry endpoint should return HTTP 200, or 401 if authentication is required. A successful image pull confirms access to that repository. Cache hits require server-side logs to verify.

Pull-through cache. Initial pulls may fetch from upstream. Push to the original upstream registry. Private repositories require explicit support and credentials on the mirror; logging in to quay.io alone does not authenticate to a different hostname.

راهنمای میرور کوای quayio سپهرسبز

اگر به دنبال راهنمای تنظیم میرور کوای quayio هستید، در این صفحه نمونه دستورها و تنظیمات لازم برای استفاده از سرویس سپهرسبز را می‌بینید. توضیحات فارسی در کنار دستورهای اصلی انگلیسی ارائه شده‌اند تا بتوانید فرمان‌ها را بدون تغییر کپی کنید.

برای دریافت ایمیج، نام میزبان رجیستری را مطابق نمونه‌های این صفحه جایگزین کنید و مسیر پروژه و برچسب نسخه را نگه دارید. تنظیمات هر رجیستری مستقل است.

پس از اعمال تغییرات، مراحل بررسی اتصال در ادامه صفحه را انجام دهید. دسترسی به فایل یا ایمیج به وضعیت سرویس، موجود بودن نسخه در مخزن بالادستی و در صورت نیاز احراز هویت بستگی دارد.

فهرست فارسی میرورهای لینوکس، برنامه‌نویسی و کانتینر