Fix using a registry anonymously if we have auth for another registry (#40)

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2017-08-10 21:15:19 +02:00 committed by Jess Frazelle
parent a05260eaf1
commit d29d6169ea

View file

@ -48,7 +48,9 @@ func GetAuthConfig(c *cli.Context) (types.AuthConfig, error) {
return creds, nil
}
}
return types.AuthConfig{}, fmt.Errorf("No authentication credentials exist for %s", c.GlobalString("registry"))
return types.AuthConfig{
ServerAddress: c.GlobalString("registry"),
}, nil
}
// set the auth config as the registryURL, username and Password