Skip to content

Commit

Permalink
Merge pull request #2222 from hashicorp/b-docker-image-not-found
Browse files Browse the repository at this point in the history
Making the docker driver retry when an image is not found
  • Loading branch information
diptanu authored Jan 23, 2017
2 parents 03523f1 + 5992a2a commit b52aa93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ var (
recoverableErrTimeouts = func(err error) error {
r := false
if strings.Contains(err.Error(), "Client.Timeout exceeded while awaiting headers") ||
strings.Contains(err.Error(), "EOF") {
strings.Contains(err.Error(), "EOF") ||
// TODO Remove when we implement global co-ordination among docker
// drivers to not remove images which are in use by instances of
// other drivers
strings.Contains(err.Error(), "no such image") {
r = true
}
return structs.NewRecoverableError(err, r)
Expand Down

0 comments on commit b52aa93

Please sign in to comment.