Tag a local image for ECR

aws ecr

  • Push, pull, and manage container images.
    More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecr/index.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

docker tag {{container_name}}:{{tag}} {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com/{{container_name}}:{{tag}}

click the source code to copy install aws ecr on any operating system with command-not-found.com