I have a Docker image in my AWS ECR which I want to convert to an AWS AMI for creating an instance with the environment.
Reason for trying to use an AMI over a Docker container
I had to run computationally intensive ML tasks in my Docker container inside an m4.xlarge
instance on some text files. However, with Docker, the CPU utilization of the instance is reaching 100% and the script is getting killed pre-maturely.
However, it is running fine in the same instance from outside of Docker.
So, I want to move to AMI's from Docker, however I also want to leverage Docker for the environment creation and the speed of testing which it enables in my local.
So, is it possible to create an AMI out of the Docker image which I test and deploy to my ECS registry?