Skip to content

Commit

Permalink
chore: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Aug 6, 2024
1 parent 6cf3835 commit 02c5a90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ai/backend/common/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ async def login(
return {"auth": basic_auth, "headers": {}}
elif ping_status == 404:
raise RuntimeError(f"Unsupported docker registry: {registry_url}! (API v2 not implemented)")
# Check also 400 response since the AWS ECR Public server returns a 400 response
# when given invalid credential authorization.
elif ping_status in [400, 401]:
params = {
"scope": scope,
Expand Down

0 comments on commit 02c5a90

Please sign in to comment.