CNIX Internal Container Registry Mirror


Usage: Change Docker Daemon

  1. Add the following content into /etc/docker/daemon.json
    {
        "registry-mirrors": ["https://docker.m.ixdev.cn/"]
    } 
  2. Restart docker service: sudo systemctl restart docker.service
  3. Check current config: docker info, and you should see
     Registry Mirrors:
      https://docker.m.ixdev.cn/ 
  4. Pull images as usual. docker pull ubuntu:latest

Usage: Domain Replacement Mode

Registry Original Example Replacement
Docker Hub nginx:latest docker.m.ixdev.cn/library/nginx:latest
Docker Hub grafana/grafana:latest docker.m.ixdev.cn/grafana/grafana:latest
Docker Hub registry-1.docker.io/foo/bar:latest docker.m.ixdev.cn/foo/bar:latest
Docker Hub docker.io/foo/bar:latest docker.m.ixdev.cn/foo/bar:latest
GitHub Package Registry ghcr.io/foo/bar:latest ghcr.m.ixdev.cn/foo/bar:latest
Red Hat Quay quay.io/foo/bar:latest quay.m.ixdev.cn/foo/bar:latest
Kubernetes Container Registry registry.k8s.io/foo/bar:latest k8s.m.ixdev.cn/foo/bar:latest
Elastic Docker registry docker.elastic.co/foo/bar:latest elastic.m.ixdev.cn/foo/bar:latest
NVIDIA GPU Cloud Container Registry nvcr.io/foo/bar:latest nvcr.m.ixdev.cn/foo/bar:latest

Usage: Prefix Addition Mode

Registry Original Example Replacement
Docker Hub nginx:latest m.ixdev.cn/docker.io/library/nginx:latest
Docker Hub grafana/grafana:latest m.ixdev.cn/docker.io/grafana/grafana:latest
Docker Hub registry-1.docker.io/foo/bar:latest m.ixdev.cn/registry-1.docker.io/foo/bar:latest
Docker Hub docker.io/foo/bar:latest m.ixdev.cn/docker.io/foo/bar:latest
GitHub Package Registry ghcr.io/foo/bar:latest m.ixdev.cn/ghcr.io/foo/bar:latest
Red Hat Quay quay.io/foo/bar:latest m.ixdev.cn/quay.io/foo/bar:latest
Kubernetes Container Registry registry.k8s.io/foo/bar:latest m.ixdev.cn/registry.k8s.io/foo/bar:latest
Elastic Docker registry docker.elastic.co/foo/bar:latest m.ixdev.cn/docker.elastic.co/foo/bar:latest
NVIDIA GPU Cloud Container Registry nvcr.io/foo/bar:latest m.ixdev.cn/nvcr.io/foo/bar:latest