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:
Petu Eusebiu
2021-12-29 17:14:56 +02:00
committed by Ramkumar Chinchani
parent 45fe129c63
commit a0e65379c8
11 changed files with 384 additions and 216 deletions
+3 -3
View File
@@ -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
}
+3 -3
View File
@@ -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
}