Push docker image to amazon ecs repository

前端 未结 5 2282
春和景丽
春和景丽 2020-12-12 17:39

Im new to AWS. I want to set up a private docker repository on an AWS ECS container instance. I created a repository named name. The example push commands shown

5条回答
  •  执笔经年
    2020-12-12 18:19

    No need to create a repo per image, just restructure naming:

    docker build -t foo .
    docker tag foo ####.dkr.ecr.us-west-2.amazonaws.com/name:foo_v0.23.1
    docker push ####.dkr.ecr.us-west-2.amazonaws.com/name:foo_v0.23.1
    

提交回复
热议问题