SepehrSabzContainer mirrors

Red Hat Registry / pull-through mirror

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

Upstream authentication. This guide assumes the backend proxies registry.redhat.io. It requires Red Hat authentication and any applicable entitlements on the mirror backend. registry.access.redhat.com is a separate upstream; use its namespace only if that is what your backend is configured to proxy. Red Hat registry documentation.
01 ? DOCKER ENGINE / DESKTOP

Pull directly from the mirror

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

shell
docker pull redhat.sepehrsabz.ir/ubi9/ubi:latest

# Optional: retain the original local image name
docker tag redhat.sepehrsabz.ir/ubi9/ubi:latest registry.redhat.io/ubi9/ubi:latest

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

02 ? PODMAN / CRI-O

Configure a Red Hat Registry-specific mirror

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

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

[[registry.mirror]]
location = "redhat.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 registry.redhat.io registry namespace

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

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

[host."https://redhat.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: redhat-mirror
spec:
  imageDigestMirrors:
    - source: registry.redhat.io
      mirrors:
        - redhat.sepehrsabz.ir
05 ? VERIFY

Check connectivity and pull an image

shell
curl -i https://redhat.sepehrsabz.ir/v2/
docker pull redhat.sepehrsabz.ir/ubi9/ubi:latest

# For Podman after configuring the registry mirror
podman pull registry.redhat.io/ubi9/ubi: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 registry.redhat.io alone does not authenticate to a different hostname.

راهنمای میرور رد هت سپهرسبز

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

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

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

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