basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
11.2k stars 439 forks source link

Issue with AWS ECR as registry. ERROR: invalid tag <docker-image-tag>: repository name must be lowercase #1146

Closed nhemanth007 closed 3 hours ago

nhemanth007 commented 3 hours ago

I am using AWS ECR as registry. As part of deploy.yml config, I have to give username for registry as AWS.

While building docker image, tag is autogenerated using the username like 123456789.dkr.ecr.us-east-2.amazonaws.com/AWS/my-app:98nd9ks23efri6ui564uik65i56hui5.

When docker try to build and push the image with that tag, it results in an error ERROR: invalid tag with reason repository name must be lowercase.

Can't use registry username as aws as it will result in 401 while trying to login to AWS ECR.

I think this needs a fix. Either username can be converted to lowercase and used in image tag or username need not be used for docker image tag. docker image generated can be just like 123456789.dkr.ecr.us-east-2.amazonaws.com/my-app:98nd9ks23efri6ui564uik65i56hui5 without username in the tag.

nhemanth007 commented 3 hours ago

My mistake. I configured image as AWS/my-app