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.
Replace ghcr.io in the image reference with ghcr.sepehrsabz.ir. This works in Docker Engine, Docker Desktop, and Compose image fields.
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:TAGDocker's registry-mirrors setting applies to Docker Hub, so it does not redirect ghcr.io pulls. Use the explicit mirror hostname.
Merge this entry into the containers registry configuration. Unavailable images fall back to the upstream registry.
[[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.
Create /etc/containerd/certs.d/ghcr.io/hosts.toml with the following content:
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.
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.
apiVersion: config.openshift.io/v1
kind: ImageDigestMirrorSet
metadata:
name: ghcr-mirror
spec:
imageDigestMirrors:
- source: ghcr.io
mirrors:
- ghcr.sepehrsabz.ircurl -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:TAGThe 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.
اگر به دنبال راهنمای تنظیم میرور رجیستری گیتهاب هستید، در این صفحه نمونه دستورها و تنظیمات لازم برای استفاده از سرویس سپهرسبز را میبینید. توضیحات فارسی در کنار دستورهای اصلی انگلیسی ارائه شدهاند تا بتوانید فرمانها را بدون تغییر کپی کنید.
برای دریافت ایمیج، نام میزبان رجیستری را مطابق نمونههای این صفحه جایگزین کنید و مسیر پروژه و برچسب نسخه را نگه دارید. تنظیمات هر رجیستری مستقل است.
پس از اعمال تغییرات، مراحل بررسی اتصال در ادامه صفحه را انجام دهید. دسترسی به فایل یا ایمیج به وضعیت سرویس، موجود بودن نسخه در مخزن بالادستی و در صورت نیاز احراز هویت بستگی دارد.