Fix the Registry detection

Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
This commit is contained in:
Alvaro Saurin 2020-01-20 21:14:34 +01:00
parent 3896f5a019
commit 4aff326f89
No known key found for this signature in database
GPG Key ID: 7B38F4A5C322A955

View File

@ -198,7 +198,7 @@ func getRegistryContainer() (string, error) {
}
cFilter := filters.NewArgs()
cFilter.Add("name", fmt.Sprintf("^%s$", defaultRegistryContainerName))
cFilter.Add("name", defaultRegistryContainerName)
// filter with the standard list of labels of our registry
for k, v := range defaultRegistryLabels {
cFilter.Add("label", fmt.Sprintf("%s=%s", k, v))