mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
sync: for a prefix, allow multiple registries as a list instead of only one, closes #343
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
45fe129c63
commit
a0e65379c8
+3
-3
@@ -383,7 +383,7 @@ Configure each registry sync:
|
||||
|
||||
```
|
||||
"registries": [{
|
||||
"url": "https://registry1:5000",
|
||||
"urls": ["https://registry1:5000"],
|
||||
"onDemand": false, # pull any image which the local registry doesn't have
|
||||
"pollInterval": "6h", # polling interval, if not set then periodically polling will not run
|
||||
"tlsVerify": true, # whether or not to verify tls
|
||||
@@ -405,7 +405,7 @@ Configure each registry sync:
|
||||
]
|
||||
},
|
||||
{
|
||||
"url": "https://registry2:5000",
|
||||
"urls": ["https://registry2:5000", "https://registry3:5000"], // specify multiple URLs in case first encounters an error
|
||||
"pollInterval": "12h",
|
||||
"tlsVerify": false,
|
||||
"onDemand": false,
|
||||
@@ -419,7 +419,7 @@ Configure each registry sync:
|
||||
]
|
||||
},
|
||||
{
|
||||
"url": "https://docker.io/library",
|
||||
"urls": ["https://docker.io/library"],
|
||||
"onDemand": true, # doesn't have content, don't periodically pull, pull just on demand.
|
||||
"tlsVerify": true
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"sync": {
|
||||
"credentialsFile": "./examples/sync-auth-filepath.json",
|
||||
"registries": [{
|
||||
"url": "https://registry1:5000",
|
||||
"urls": ["https://registry1:5000"],
|
||||
"onDemand": false,
|
||||
"pollInterval": "6h",
|
||||
"tlsVerify": true,
|
||||
@@ -33,7 +33,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"url": "https://registry2:5000",
|
||||
"urls": ["https://registry2:5000", "https://registry3:5000"],
|
||||
"pollInterval": "12h",
|
||||
"tlsVerify": false,
|
||||
"onDemand": false,
|
||||
@@ -47,7 +47,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"url": "https://docker.io/library",
|
||||
"urls": ["https://docker.io/library"],
|
||||
"onDemand": true,
|
||||
"tlsVerify": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user