I am trying to create an image tag using the below command but I am getting an error:
$ docker tag s1-env-project-data-explorer-ui:latest 111111111111.dkr.ecr.us-east-1.amazonaws.com/s1-env-project-common:s1-env-project-data-explorer-ui:latest
Error parsing reference: "111111111111.dkr.ecr.us-east-1.amazonaws.com/s1-env-project-common:s1-env-project-data-explorer-ui:latest" is not a valid repository/tag: invalid reference format
What am I missing here?
2
Answers
please consider below format
for example:
A docker tag cannot have a
:
in it. From the documentation:so the following is invalid:
As per your comment, if you are working with two different components, you should certainly have two different ECR repositories.