# Setting the Record Straight: containers vs. Zones vs. Jails vs. VMs

DevFeed: [Setting the Record Straight: containers vs. Zones vs. Jails vs. VMs](<https://devfeed.tech/articles/setting-the-record-straight-containers-vs-zones-vs-jails-vs-vms-35156.md>)

Original publisher: [Read original article](<https://blog.jessfraz.com/post/containers-zones-jails-vms/>)

Published: 2017-03-28T19:17:58Z

Content type: opinion

Language: en

Sources: [Jessie Frazelle](<https://devfeed.tech/sources/jessie-frazelle.md>)

Topics: [container](<https://devfeed.tech/topics/container.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [containers](<https://devfeed.tech/tags/containers.md>), [linux](<https://devfeed.tech/tags/linux.md>), [vs](<https://devfeed.tech/tags/vs.md>)

## AI overview

The article compares Linux containers with Solaris Zones, BSD Jails, and virtual machines. It argues that containers are a term for combinations of Linux namespaces and cgroups, whose designs differ from those of Zones, Jails, and VMs, and describes namespace sharing for inspection and debugging.

## Source excerpt

I'm tired of having the same conversation over and over again with people so I figured I would put it into a blog post. Many people ask me if I have tried or what I think of Solaris Zones / BSD Jails. The answer is simply: I have tried them and I definitely like them. The conversation then heads towards them telling me how Zones and Jails are far superior to containers and that I should basically just give up with Linux containers and use VMs. Which to be honest is a bit forward to someone who has spent a large portion of her career working with containers and trying to make containers more secure. Here is what I tell them: The Design of Solaris Zones, BSD Jails, VMs and containers are very different. Solaris Zones, BSD Jails, and VMs are first class concepts. This is clear from the Solaris Zone Design Spec and the BSD Jails Handbook. I hope it can go without saying that VMs are very much a first class object without me having to link you somewhere :P. Containers on the other hand are not real things. I have said this in many talks and I'm saying it again now. CONTAINERS ARE NOT A REAL THING!!! @jessfraz talking containers #GoogleNext17 pic.twitter.com/gzxjNnSk2n -- Jorge Silva (@thejsj) March 10, 2017 A "container" is just a term people use to describe a combination of Linux namespaces and cgroups. Linux namespaces and cgroups ARE first class objects. NOT containers. I am trying to make this distinction very clear to make a point. The designs are different. PERIOD. Let's go over some of the things you can do with containers that you CANNOT do with Jails or Zones or VMs. Sharing Namespaces Since containers are made with specific building blocks of namespaces this allows for doing some super neat things like sharing namespaces. There are many different namespaces but I will give a couple examples. This specific example can be seen in a demo by Arnaud Porterie from our talk at Dockercon EU in 2015. You can have your application running in one container, then in a diffe