From what I read in https://wiki.freebsd.org/Jails, jails don't yet have support for:
* separate PID space
* IO isolation
* per-container OOM handler (userspace)
* per-container swap
* per-container disk I/O scheduling
* per-container memory reclaim
* per-container dirty page (write throttling) limit.
If I was wrong about this it's because I'm not up to date on things that happen in the Linux kernel, it wasn't my intention to bash it or anything like that.
There are also people experimenting with using Jails and Solaris zones as a backend to docker.
From what I'm reading, this project cbsd sounds like a more direct competitor of docker + a future jails backend.
I'm happy to hear about plans for different backends, the jails one would be awesome if it comes to fruition.
* a ready repository for kernels and the worlds that takes buildworld/installworld steps not the obligatory.
* when steps of buildworld/installworld are undertaken,
src.conf for a world customization is supported
* base the catalog can place on MD/RAM/TMPFS on a disk that can be useful at a big num of jails with RO mounted base
* support of ZFS of file system, ZFS of quotas, ZFS snapshots
* GUI configurator of jails (DIALOG/WEB)
* VIMAGE support (separate network stack per jail container)
* traffic count per jail, RACCT/RCTL support (resource restrictions)
* import/export of jails, jail replication, cold migration of a jails between nodes
* descriptions for jails
* management of sequence of start of jail and their priority
* a repository with ready jail template
* possibility to create own scenarios for creation of jails/repository
* jail converting into PXE/ISO/Memstick-image
* support for jail non-native architecture via Qemu User mode (eg: arm or mips64 jail on x86-64 host system)
If you're looking to try it out but don't need/want the desktop/GUI, there's also TrueOS. It's basically FreeBSD plus all the cool management tools they've written but minus the desktop/GUI.
Now, I don't use FreeBSD, but that seems like a dream when it comes to provisioning.
AFAIK, no. PKGNG is intentionally not part of base, it's meant to always remain in ports. The reason is that it allows pkg developers to iterate quickly (and this ties nicely into the recent ports infrastructure overhaul efforts). Once something is part of base and goes into a RELEASE it pretty much has to stay frozen apart for security fixes, and this was deemed not flexible enough for pkg. The only thing in base is a shim pkg which on first invocation installs the real thing from ports (and, I think, later just routes everything to it, unless you remove it or change PATH). So nothing in base uses sqlite and it's in ports/packages.
$ pkg foo
pkg is not installed. Install it? (y/n) y
pkg is now installed
I'd say something like this on top of bhyve would be a closer match for docker (which sits on top of lxc).
for the rest of HN:
Isn't one of Dockers killer features the layered file system? Using rsync for making new jails seems like it's going to be real slow for reprovisioning.
What kind of things to people use FreeBSD for? I wonder if they're really rooting for a docker coming to their environment.
ISPs have been big users of FreeBSD. While HN is a lot of startups going on about agile, continuous integration, Jenkins, etc., those of us in enterprise and ISP environments like stability and little change.
When deploying a new mail system for 100k users, for example, I want to set it up, get it working perfectly, and then not have to touch it (exception: security updates, of course) for the next few years.
FreeBSD is rock solid and lets you do just that. FreeBSD 8.0-RELEASE was announced in November 2009, if memory serves, and I still have DNS servers running 8.x that I rarely have to touch (and won't have to until June 30, 2015). It Just Works(TM).
Use can mount anything you like to any mount point in jails. (Even without ZFS, with ZFS it's a different story.) I don't know about this CBSD, but ejail and qjail (similar tools) do that for you — they mount some “base” system in jail. Then you mount what you want, pkg install what want etc
> I wonder if they're really rooting for a docker coming to their environment.
WHAT? No, it's with docker GNU/Linux is finally going to have something like jails, which FreeBSD have has for decades.
HN for start. And then there's (off the top of my head) Netflix, NetApp, Juniper, Sony, countless ISPs, DuckDuckGo...
(scroll to "Hosting History")
Further, it may interest you to know that we (JohnCompanies) used FreeBSD and jail to provide the first VPS services, back in fall of 2001. The VPS as we know it (which appears to be dying in the world of EC2-style instances) came into existence as a direct result of jail.
 Yes, Verio did have that bizarro VPS-like service that cost an arm and a leg a year or so earlier, but the VPS as you think of it was first provided (AFAIK) by JohnCompanies in 2001.
Good to see there is at least 74 points on the topic.
docker:linux :: cbsd:freebsd
lxc:linux :: jails:linux
docker:lxc :: cbsd:jails
And if one day docker gets a jails execution driver:
docker:freebsd :: cbsd:freebsd
docker:jails :: cbsd:jails