Hacker News new | ask | show | jobs
by msravi 4012 days ago
How is this different from sharing a plain old VM image and doing the same thing? Is there any particular advantage that a Docker image brings?
2 comments

Docker images use the union file system. That means when a new version of that image is available, you often only pull a few megabytes from the hub because it already has the OS.

A docker container is also way more lightweight. Instead of running a full OS, you I only run one process. So your docker image starts within seconds

Is this more like a Solaris zone or a Linux chroot-ed env?
A lot like Linux chroot, with some additional features, restrictions, and a mechanism to share them easily.
For one, speed. Provisioning a VM image takes a lot longer than a container.

Secondly, composition. Can you provision and link the 10 instances that make up your application? Web servers, app servers, proxies, caches, databases, hadoop etc.

I think this second ability is the truly compelling one for me. The features that allow this (swarm and compose for docker, lots of other competing orchestration stuff) are still pretty young, but it would still push me in the direction of containerization over virtualization.