diff --git a/lib/datasource/docker/index.ts b/lib/datasource/docker/index.ts
index 303280adbd4ff842b9a1111705c1e514a608880a..2ca7ef89000369e80d1d43d024220be67208c06c 100644
--- a/lib/datasource/docker/index.ts
+++ b/lib/datasource/docker/index.ts
@@ -560,7 +560,7 @@ async function getLabels(
         'Timeout when attempting to connect to docker registry'
       );
       logger.debug({ err });
-    } else if (err.host === 'quay.io' && err.statusCode === 400) {
+    } else if (registry === 'https://quay.io') {
       // istanbul ignore next
       logger.debug(
         'Ignoring quay.io errors until they fully support v2 schema'