report registry error when retry gives up
@@ -106,7 +106,7 @@ func RetryImageAction(client DockerClient, opts interface{}, authConfig docker.A
time.Sleep(DefaultPushOrPullRetryDelay)
}
- return fmt.Errorf("After retrying %d times, %s image still failed", DefaultPushOrPullRetryCount, actionName)
+ return fmt.Errorf("After retrying %d times, %s image still failed due to error: %v", DefaultPushOrPullRetryCount, actionName, err)
}
func pullImage(client DockerClient, name string, authConfig docker.AuthConfiguration) error {
