Skip to content

Commit f1c563c

Browse files
authored
fix _default_token_url, look for the new registry URL
1 parent ba3b01a commit f1c563c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binderhub/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _default_token_url(self):
128128
url = urlparse(self.url)
129129
if ("." + url.hostname).endswith(".gcr.io"):
130130
return "https://{0}/v2/token?service={0}".format(url.hostname)
131-
elif self.url.endswith(".docker.com"):
131+
elif self.url.endswith(".docker.io"):
132132
return "https://auth.docker.io/token?service=registry.docker.io"
133133
else:
134134
# is gcr.io's token url common? If so, it might be worth defaulting

0 commit comments

Comments
 (0)