3 ms·
IMO, docker is less useful when you are on a cloud platform like AWS since you already can pack and ship your application as AMI, they even have a marketplace f
by tszming 12y ago
IMO, docker is less useful when you are on a cloud platform like AWS since you already can pack and ship your application as AMI, they even have a marketplace for this: https://aws.amazon.com/marketplace https://aws.amazon.com/marketplace. One of the exceptions I can think of why you really need to run docker inside ec2 is you want to build a PaaS or something like memcached as a service, since it is expensive to give every customer to own a dedicated instance.
Honestly, I would prefer to run as many small/medium instances rather than a powerful instance but to host many dockers inside it, because if you put all the eggs in one basket and when then host machine is down, you are having a bigger problem; if you host a single docker on an ec2 instance, and as I said before, you can already solve this via AMI without the overheads/abstraction.
Of course, it is still very useful to run docker on a physical machine when you don't want to setup KVM or mess up with OpenStack.
- dmourati 12y agoCool. This analysis is similar to my thoughts. Still trying to get educated and reached out to the docker fellow below for more info. Big fan of packer.io + AMI / Virtualbox / GCE for this. See generally: http://www.infoq.com/articles/virtual-panel-immutable-infrastructure http://www.infoq.com/articles/virtual-panel-immutable-infras...
- robszumski 12y agoSounds like you might be a perfect candidate for CoreOS. fleet allows for single-purpose containers to move around a cluster. It supports all of the platforms that you mentioned (AWS, Openstack, KVM and bare metal).
- benjaminwootton 12y agoDocker is massively more lightweight than shipping AMIs. - We build hundreds if not thousands of docker images a day after each CI commit. Thats not viable with virtual machines or AMIs. - Docker has the union file system, so pushes and pulls of Docker images after each CI build are tiny; - Docker is more platform independent whereas AMIs are very EC2 specific. No other cloud provider have anything as sophisiticated as AMI; - Rollbacks are instant with Docker; Docker can also be used in conjunction with autoscaling and resilience. We have 10+ containers on a box, but still replicate this 5 or 6 times and will possibly add EC2 AutoScaling in future. Cloud and Docker are complementary not an alternative in my opinion.