Retry Docker API calls.