Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo on env vars #108

Merged
merged 1 commit into from
Nov 6, 2020
Merged

Fix typo on env vars #108

merged 1 commit into from
Nov 6, 2020

Conversation

silvin-lubecki
Copy link
Collaborator

Fix typo, we should have 2 different env vars: DOCKER_REGISTRY_URL and DOCKER_API_URL

image

Copy link
Member

@chris-crone chris-crone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -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_API_URL")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case we have another Docker something API:

Suggested change
apiBaseURL := os.Getenv("DOCKER_API_URL")
apiBaseURL := os.Getenv("DOCKER_HUB_API_URL")

…d DOCKER_HUB_API_URL

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
@silvin-lubecki silvin-lubecki merged commit e603ffd into main Nov 6, 2020
@silvin-lubecki silvin-lubecki deleted the fix-docker-api-url-env branch November 6, 2020 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants