You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AWS ECR authentication fails because registry usernames are forcibly lowercased #4632
Error response from daemon: login attempt to https:///v2/ failed with status: 401 Unauthorized
Expected behavior
Dokploy should preserve the username exactly as entered:
This is a valid conflict between two requirements. The .toLowerCase() transformation was intentionally added in PR #4382 to fix a different issue — Docker registries like GHCR and Docker Hub require image namespaces to be lowercase. Without it, usernames with capital letters caused deployment failures like:
Error parsing reference: "ghcr.io/Baker/dnsbuddy-frontend-pamcuy" is not a valid repository/tag:
repository name (Baker/dnsbuddy-frontend-pamcuy) must be lowercase
However, for AWS ECR the username AWS is used for authentication only — it's not part of the image namespace path. So the fix likely needs to be more nuanced: lowercase the username when constructing image references/tags, but preserve the original case when performing docker login. The tag generation in packages/server/src/utils/cluster/upload.ts already does its own lowercasing independently via (imagePrefix || username).toLowerCase()[2], so removing the schema-level transform might be safe.
It's also worth noting there are open PRs (#4141, #2660) working on dedicated AWS ECR support using credential-based authentication rather than the standard username/password flow [3][4], which would be the longer-term solution for ECR.
Activity
dosubot commentedon Jun 14, 2026
Hi @arontech-co! I'm Dosu and I'm helping the Dokploy team.
This is a valid conflict between two requirements. The
.toLowerCase()transformation was intentionally added in PR #4382 to fix a different issue — Docker registries like GHCR and Docker Hub require image namespaces to be lowercase. Without it, usernames with capital letters caused deployment failures like:The comment in the code explains this intent [1]:
However, for AWS ECR the username
AWSis used for authentication only — it's not part of the image namespace path. So the fix likely needs to be more nuanced: lowercase the username when constructing image references/tags, but preserve the original case when performingdocker login. The tag generation inpackages/server/src/utils/cluster/upload.tsalready does its own lowercasing independently via(imagePrefix || username).toLowerCase()[2], so removing the schema-level transform might be safe.It's also worth noting there are open PRs (#4141, #2660) working on dedicated AWS ECR support using credential-based authentication rather than the standard username/password flow [3] [4], which would be the longer-term solution for ECR.
To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.
zexxitywave commentedon Jun 14, 2026
I've submitted PR #4635 which addresses this issue.
fix(registry): preserve username case for ECR compatibility (#4632) (#…
fix(registry): preserve fork username trimming and getRegistryTag layout
chore(release): 0.37.0 [skip ci]