From 5bcc9d061747758b45f962dc40e6ea55a299a981 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 11 Dec 2019 10:08:22 +0200 Subject: [PATCH] fix(docker): include hostType in lookup (#4964) --- lib/datasource/docker/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datasource/docker/index.ts b/lib/datasource/docker/index.ts index 5695222408..793ee45cbb 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'); } -- GitLab