简体   繁体   中英

Docker push command is giving error "tag does not exist"

I am trying to push the docker image created on my local to Amazon ECR repository using below command:-

docker push <<accountid>>.dkr.ecr.<<region>>.amazonaws.com/api:latest

give below error:-

tag does not exist: <<accountid>>.dkr.ecr.<<region>>mazonaws.com/api:latest

You did not tag your image correctly. Just follow the simple steps mentioned in your ECR repo after clicking view push command .

General command is this to tag your image

docker tag yourLocalDockerImage <accountId>.dkr.ecr.<region>.amazonaws.com/<repoName>:<tag>;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM