Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2020 19:30:33 -0400
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        Steve O'Hara-Smith <steve@sohara.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Technological advantages over Linux
Message-ID:  <3621691B-7397-4E96-BB2C-30DB13C4F59D@gromit.dlib.vt.edu>
In-Reply-To: <20200724185605.598068c18440361a173b4e60@sohara.org>
References:  <mailman.73.1595592001.51665.freebsd-questions@freebsd.org> <20E68F58-D924-4EE5-8919-93E27FDF94C4@gromit.dlib.vt.edu> <20200724185605.598068c18440361a173b4e60@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 24, 2020, at 1:56 PM, Steve O'Hara-Smith <steve@sohara.org> =
wrote:

> On Fri, 24 Jul 2020 12:00:16 -0400
> Paul Mather <paul@gromit.dlib.vt.edu> wrote:
>=20
>> Whenever Docker comes up, it seems to me that in the FreeBSD world =
the
>> cry that goes up is "they're just like jails."  In my experience, =
though,
>> FreeBSD jails are more heavyweight than Docker containers.  Jails in
>> FreeBSD are more analogous to using LXD in Linux---lightweight OS
>> virtualisation.
>=20
> 	I think you mean LXC in Linux - Docker the engine is a built on =
top
> of LXC and filesystem layering. These days LXC is fronted by =
containerd in
> Docker which I believe allows for using other container technologies.


No, I meant LXD (https://linuxcontainers.org/lxd/), but I admit my use =
was confusing (as LXD !=3D Docker).  I was using LXD as an example in =
the Linux world of what iocage or ezjail or Bastile or pot or cbsd would =
be in the FreeBSD world---as a framework for managing lightweight OS =
servers.  In other words, to me, LXD is closer in spirit (more so than =
Docker) to the way jails are used and managed by tools like iocage et =
al. in FreeBSD.

I agree that LXC is the basis of containers in Linux.  LXD itself is =
just a management tool over LXC.


>> (What you say sounds like LXD OS containers to me.)  What people want
>=20
> 	LXC =3D=3D jails. Docker is a layer built on top of LXC and =
layered
> VFS mounts. It is perfectly possible to build something like Docker on =
top
> of jails, it is probably even possible to make Docker use jails. Of =
course
> the library of LXC based images would be useless but the stack on up =
to
> swarm and Kubernetes would all work.


It would be nice to make Docker use jails.  I agree, the existing =
LXC-based images would be unusable (though not all LXC images are built =
and available for all architectures supported by LXC---most are for =
x86), but like Docker Windows Containers, an ecosystem for =
FreeBSD-compatible Docker containers could emerge.  (And, with a bhyve =
plugin for docker-machine, all the LXC images would be useful.)  The =
limitation is likely not technological but one of community and support.

Cheers,

Paul.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3621691B-7397-4E96-BB2C-30DB13C4F59D>