Publishing Docker images to ECR

In earlier chapters, you learned how to build and tag Docker images locally, using the todobackend sample application as an example.

You can now extend this workflow to publish Docker images to ECR, which requires you to perform the following tasks:

  • Ensure you are logged into ECR
  • Build and tag your Docker image with the URI of your ECR repository
  • Push your Docker image to ECR