Making the docker driver retry when an image is not found

This commit is contained in:
Diptanu Choudhury
2017-01-20 12:38:04 -08:00
parent 9fbad265d8
commit e659ee0b77

View File

@@ -53,7 +53,8 @@ var (
recoverableErrTimeouts = func(err error) *structs.RecoverableError {
r := false
if strings.Contains(err.Error(), "Client.Timeout exceeded while awaiting headers") ||
strings.Contains(err.Error(), "EOF") {
strings.Contains(err.Error(), "EOF") ||
strings.Contains(err.Error(), "no such image") {
r = true
}
return structs.NewRecoverableError(err, r)