SepehrSabzContainer mirrors

GitLab Container Registry / pull-through mirror

Use gitlab.sepehrsabz.ir to pull public images from registry.gitlab.com. 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 registry.gitlab.com in the image reference with gitlab.sepehrsabz.ir. This works in Docker Engine, Docker Desktop, and Compose image fields.

shell
docker pull gitlab.sepehrsabz.ir/GROUP/PROJECT/IMAGE:TAG

# Optional: retain the original local image name
docker tag gitlab.sepehrsabz.ir/GROUP/PROJECT/IMAGE:TAG registry.gitlab.com/GROUP/PROJECT/IMAGE:TAG

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

02 ? PODMAN / CRI-O

Configure a GitLab 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/gitlab.conf
[[registry]]
prefix = "registry.gitlab.com"
location = "registry.gitlab.com"

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

Create /etc/containerd/certs.d/registry.gitlab.com/hosts.toml with the following content:

/etc/containerd/certs.d/registry.gitlab.com/hosts.toml
server = "https://registry.gitlab.com"

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

Check connectivity and pull an image

shell
curl -i https://gitlab.sepehrsabz.ir/v2/
docker pull gitlab.sepehrsabz.ir/GROUP/PROJECT/IMAGE:TAG

# For Podman after configuring the registry mirror
podman pull registry.gitlab.com/GROUP/PROJECT/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 registry.gitlab.com alone does not authenticate to a different hostname.

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

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

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

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

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