SepehrSabzContainer mirrors

GitHub Container Registry / pull-through mirror

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

Replace the uppercase owner, project, image, and tag placeholders with an existing repository you can access. This mirror serves container images, not Git clones or package registries.

01 ? DOCKER ENGINE / DESKTOP

Pull directly from the mirror

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

shell
docker pull ghcr.sepehrsabz.ir/OWNER/IMAGE:TAG

# Optional: retain the original local image name
docker tag ghcr.sepehrsabz.ir/OWNER/IMAGE:TAG ghcr.io/OWNER/IMAGE:TAG

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

02 ? PODMAN / CRI-O

Configure a GitHub Container Registry-specific mirror

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

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

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

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

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

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

Check connectivity and pull an image

shell
curl -i https://ghcr.sepehrsabz.ir/v2/
docker pull ghcr.sepehrsabz.ir/OWNER/IMAGE:TAG

# For Podman after configuring the registry mirror
podman pull ghcr.io/OWNER/IMAGE:TAG

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 ghcr.io alone does not authenticate to a different hostname.

راهنمای میرور رجیستری گیت‌هاب سپهرسبز

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

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

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

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