New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.


Comments
omg
why i posted in provider cat?
please move it to general cat
thank you
While LXC and Docker both use Linux namespaces and cgroups, they're quite different as LXC contains a complete distribution with a startup system and often sshd, but Docker (AFAIK) only has the daemons.
And the root filesystems are also different, IIRC Docker's root filesystems are readonly.
(If I'm wrong feel free to correct me, never used Docker and never will.)
precisely
you are quite right
just because lxc relies on emulating linux rootfs details , it turned out too heavy
docker however,just lit itself upper a bit beyond kernel, so it turned out light and to be fit for "sandbox runtime"
in fact, docker implement has wider applicable areas and domains than lxc
No? What about LXC is "too heavy"?
Docker is by no means "light". Just checked the source code:
Nearly 2M LoC!
I love Docker
systemd-nspawn is where it’s at if you want a halfway sane container system
while sharing the same kernel and namespaces/cgroups basis:
docker requires no systemd, no init in rootfs, just a executable path as daemon
but lxc rootfs requires explict init mechanism and systemd/systemd alternatives just like normal linux rootfs,services rooted in systemd can be a very huge network
docker has 2M LoC codebase, mostly of them are transaction level api, not implement level logics, the basic parts are still thin as lxc.
From https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html: