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.
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 reasonrepository 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.