At the risk of nitpicking, docker images aren't the equivalent of VM images, as they don't include a kernel.
At the risk of nitpicking, docker images aren't the equivalent of VM images, as they don't include a kernel.
Docker is not virtualization, it's just an abstraction that makes some Linux process isolation features easier to manage.
It also allows you to bundle whatever dependencies you have in the same bundle, but that is not the same as having a VM.
[1]: https://en.wikipedia.org/wiki/Operating_system-level_virtual...
Threads, processes and containers exist on a continuum.
See also cgroups: while this feature is used by the container run times, it predates Docker, and can be used standalone with normal processes.
If only I had realised that could have been useful for more than testing npm packages...
Both if implemented to spec will be logically equivalent and drop-in replacements for one another.