From 8e77ceb6aacfd25df4edff39d2ee4735f6a8966a Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Fri, 6 Nov 2020 14:33:07 +0100 Subject: [PATCH] Fix typo, we should have 2 different env vars: DOCKER_REGISTRY_URL and DOCKER_HUB_API_URL Signed-off-by: Silvin Lubecki --- internal/hub/instances.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hub/instances.go b/internal/hub/instances.go index 4bbb0e3..c802511 100644 --- a/internal/hub/instances.go +++ b/internal/hub/instances.go @@ -43,7 +43,7 @@ var ( // getInstance returns the current hub instance, which can be overridden by // DOCKER_REGISTRY_URL and DOCKER_REGISTRY_URL env var func getInstance() *Instance { - apiBaseURL := os.Getenv("DOCKER_REGISTRY_URL") + apiBaseURL := os.Getenv("DOCKER_HUB_API_URL") reg := os.Getenv("DOCKER_REGISTRY_URL") if apiBaseURL != "" && reg != "" {