EN

Docker Registry Proxy

// Accelerate & relay the official Docker registry

dockerproxy.4042024.xyz

1 Use as a registry mirror

$ Write the mirror endpoint into Docker config

/etc/docker/daemon.json
sudo tee /etc/docker/daemon.json << EOF
{
  "registry-mirrors": ["https://dockerproxy.4042024.xyz"]
}
EOF
sudo systemctl daemon-reload && sudo systemctl restart docker

$ Then pull as usual

bash
docker pull redis
docker pull bitnami/rabbitmq
docker pull nginx

2 Pull with the registry prefix

$ Prefix the image name with this proxy domain

bash
# Official image (library namespace)
docker pull dockerproxy.4042024.xyz/library/redis

# Non-official image
docker pull dockerproxy.4042024.xyz/bitnami/postgresql

$ Rename back to original (optional)

bash
docker tag dockerproxy.4042024.xyz/library/redis redis
docker tag dockerproxy.4042024.xyz/bitnami/postgresql bitnami/postgresql