diff --git a/lib/datasource/docker/index.ts b/lib/datasource/docker/index.ts
index 569522240822cf0c3238a5e290513a2718df8407..793ee45cbb97d38a1539cbdf579790540b8051ab 100644
--- a/lib/datasource/docker/index.ts
+++ b/lib/datasource/docker/index.ts
@@ -41,7 +41,7 @@ export function getRegistryRepository(
   if (!registry.match('^https?://')) {
     registry = `https://${registry}`;
   }
-  const opts = hostRules.find({ url: registry });
+  const opts = hostRules.find({ hostType: 'docker', url: registry });
   if (opts && opts.insecureRegistry) {
     registry = registry.replace('https', 'http');
   }