mirror of https://github.com/docker/compose.git
Don't return error if we can't parse the creds
We just continue on to the next credentials
This commit is contained in:
parent
e0f8289f1c
commit
9103215bf3
|
@ -73,8 +73,10 @@ func getRegistryCredentials(project compose.Project, registryLoader registryConf
|
|||
var registryCreds []containerinstance.ImageRegistryCredential
|
||||
for name, oneCred := range allCreds {
|
||||
parsedURL, err := url.Parse(name)
|
||||
// Credentials can contain some garbage, we don't return the error here
|
||||
// because we don't care about these garbage creds.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
continue
|
||||
}
|
||||
|
||||
hostname := parsedURL.Host
|
||||
|
|
Loading…
Reference in New Issue