The difference between docker and AMI

In the context of AWS:

AMI is used for software packaging and can be deployed on EC2. Docker can also be used for packaging software and can also be deployed to EC2.

What is the difference between both and how can I choose between them?

+7
docker amazon-web-services amazon-ec2 ami
source share
2 answers

AMI is an image. This is a whole machine from which you can start new instances. The docker container is lighter and more portable. A docker container must be transported between providers, while AMI is not (easy).

AMIs are basically VM images. Dock containers are packaged mini-images that run on some virtual machine in an isolated environment.

+9
source share

This link provides information on the differences between Docker and AMI: - https://forums.docker.com/t/how-would-you-differentiate-between-docker-vs-ec2-image/1235/2

+2
source share

All Articles