Troubleshooting: AWS ECS Deploy Containerized Flask Application

Overview

  1. Create an AWS Account
  2. Install and Configure AWS CLI
  3. Install Docker
  4. Create a or clone flask application with a docker file
  5. Create Docker Image from Dockerfile
  6. Run and View Docker Image Locally
  7. Create Repository in ECS Registry

Create Docker Image from Dockerfile

Troubleshooting

Command Fails Without Docker Daemon Running

Command Fails With Docker Daemon Running

Ensure Docker Credential Desktop Executable is on Path

Rename credsStore to credStore

Re-attempt to build the image



Run Docker Image

Create Repository in Elastic Container Registry

Execute the command below to create a repository in the elastic container registry

Authenticate with newly created ECR repo

Push to newly authenticated repo