While discovering FreeBSD, jails & related management tools (ezjail, bastille, pot, etc) there is something I can't figure out:
Why not give
I am aware there are many types of jails (thin, thick, etc.) but it wouldn't be too complicated to define this in /etc/jail.conf so
My intuition is we would simplify 80% of the use cases for jails as I guess most people just want to contain & run an application/service.
I am also guessing a lot of Linux distros are gonna do that in a much less elegant way by packaging the Docker container in their package manager, especially for immutable & container oriented OS like Fedora CoreOS & Suse MicroOS.
If FreeBSD had that relatively simple feature it would make even more obvious it's superiority in terms of os-level virtualization.
Instead it seems management tools like sysutils/bastille follow the path of Docker with a templating system or Dockerfile type language https://bastille.readthedocs.io/en/latest/chapters/template.html which is IMHO just an ugly thing on top of the OS package manager.
What am I missing here?
Why not give
pkg
the ability to actually create the jail that will contain the packages we install? something like pkg -cj webserverjail install nginx nginx-prometheus-exporter
I am aware there are many types of jails (thin, thick, etc.) but it wouldn't be too complicated to define this in /etc/jail.conf so
pkg
would know how to create the jail. And the jail could always be customized to a certain extend afterward. My intuition is we would simplify 80% of the use cases for jails as I guess most people just want to contain & run an application/service.
I am also guessing a lot of Linux distros are gonna do that in a much less elegant way by packaging the Docker container in their package manager, especially for immutable & container oriented OS like Fedora CoreOS & Suse MicroOS.
If FreeBSD had that relatively simple feature it would make even more obvious it's superiority in terms of os-level virtualization.
Instead it seems management tools like sysutils/bastille follow the path of Docker with a templating system or Dockerfile type language https://bastille.readthedocs.io/en/latest/chapters/template.html which is IMHO just an ugly thing on top of the OS package manager.
What am I missing here?