From c7be79e190f78b856d7e175b7257ff47e296b5a8 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Thu, 21 Apr 2016 14:32:34 +0200 Subject: [PATCH] fix invalid credentials error Signed-off-by: Antonio Murdaca --- docker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker.go b/docker.go index f1e1ef70..d7ba5534 100644 --- a/docker.go +++ b/docker.go @@ -505,7 +505,8 @@ func decodeDockerAuth(s string) (string, string, error) { } parts := strings.SplitN(string(decoded), ":", 2) if len(parts) != 2 { - return "", "", fmt.Errorf("invalid auth configuration file") + // if it's invalid just skip, as docker does + return "", "", nil } user := parts[0] password := strings.Trim(parts[1], "\x00")