Docker Registry

Mirror the Docker Hub library

重新打标签

1
2
docker pull <your-registry-mirror>[:<port>]/library/busybox
docker tag <your-registry-mirror>[:<port>]/library/busybox:latest busybox:latest

运行一个Registry

Registry image

1
2
3
4
5
$ docker pull registry
$ docker run -d -p 5000:5000 --restart always --name registry registry:2
$ docker pull ubuntu
$ docker tag ubuntu localhost:5000/ubuntu
$ docker push localhost:5000/ubuntu

pull-through cache

1
2
3
# /etc/docker/registry/config.yml
proxy:
remoteurl: https://registry-1.docker.io

配置Docker daemon

1
2
3
4
5
6
7
# /etc/docker/daemon.json
{
"registry-mirrors": ["https://<my-docker-mirror-host>"]
}

# sudo systemctl daemon-reload
# sudo systemctl restart docker

镜像加速

镜像加速服务状态监控

DaoCloud

1panel

渡渡鸟