|
|
|
|
|
by mschuster91
2052 days ago
|
|
As long as you're not doing push stuff: 1) set up a series of N docker registry mirrors in pull-through mode (https://docs.docker.com/registry/recipes/mirror/, it's as simple as "docker run --rm --name registry -d -p 5000:5000 -e REGISTRY_STORAGE_DELETE_ENABLED=true -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io -v /mnt/persistentdata/registry:/var/lib/registry registry") 2) expose them on the same domain name (multiple A records, loadbalancers, whatever you want) 3) set them as mirrors in each machine's docker daemon In case one of your mirrors go down, take them out of the DNS/LB rotation. That's it. |
|