Add a more detailed error message for potential auth fails in docker pull.

This commit is contained in:
Brendan Burns
2015-02-10 07:23:32 -08:00
parent e27d534b87
commit 0532c46217
3 changed files with 45 additions and 1 deletions

View File

@@ -143,3 +143,12 @@ func (dk *lazyDockerKeyring) Lookup(image string) (docker.AuthConfiguration, boo
return keyring.Lookup(image)
}
type FakeKeyring struct {
auth docker.AuthConfiguration
ok bool
}
func (f *FakeKeyring) Lookup(image string) (docker.AuthConfiguration, bool) {
return f.auth, f.ok
}