Lurker News

Comments (139) 24 threads

Show all comments

Showing thread 2 of 24

juliangoldsmith#
Darch reminds me a bit of Tiny Core Linux. That uses loopback images for packages, and puts them together with UnionFS, IIRC.
Koshkin2 replies#
Well, containers and VMs are two different things (are they not?).
derimagia1 reply#
They are different, yes.
logicallee2 replies#
Do some containers run outside a VM? Docker for example "uses operating-system-level virtualization to develop and deliver software in packages called containers."
viraptor1 reply#
Most containers run outside of VMs.

Continue this thread — 1 reply

detaro1 reply#
That's not a virtual machine.

I'd personally blame marketing-speak on using "virtualization" at all (unless they refer to their windows/mac offerings, which can run a Linux VM as the docker host, on which the containers are run), but I can see how one could also stretch a definition of virtualization in a way that covers container.
Sometimes containers are run in VMs, but they are almost defined as "do not require a full VM running an OS, but instead talk to the host kernel".

logicallee2 replies#
Interesting. So what makes it virtualization? What's "virtual" or "virtualized" about it?
Bombthecat3 replies#
The kernel

Continue this thread — 3 replies

detaro1 reply#
One could argue that the key of virtualization is that a piece of software is run in an environment that pretends to be something else than the actual base system. A VM hypervisor runs an operating system in a way that it looks like as it is running alone on a physical machine, with some fake devices. From inside a container, similarly the environment is fake: it can't see processes outside the container, it's view of the file system or devices is modified, and it looks as if the things in the container were the only things on that kernel.
logicallee1 reply#
So at its core it's just a set of access permissions + hiding of "forbidden" stuff? How about RAM and stuff, and hardware - does it get a true answer if querying its system? Or is that stuff virtualized too?
hardwaresofton1 reply#
Super late but I have an comment[0] that answers this relatively decently, particularly this sentence:

> A docker container is not a VM, it is a regular process, isolated with the use of cgroups and namespaces, possibly protected (like any other process) with selinux/apparmor/etc.
Where virtual machines will actually virtualize a whole machine (down to having BIOS for your imaginary motherboard and a CPU for this imaginary machine), linux containerization virtualizes the resources & environment available to a single running process via the use of namespaces (pid, user, etc) and cgroups (available cpu, memory, etc).
So basically, there's a bunch of code in the kernel (shared between all containers) that enables the accurate reporting of all the "virtualized" resources/environment (cpu, memory, other pids running) -- that code can be exploited, which would be a "container escape". Dirty Cow[1] is an example of one of these escapes.
[0]: https://news.ycombinator.com/item?id=20059875
[1]: https://dirtycow.ninja/

logicallee1 reply#
thanks, this was super useful. I thought all docker containers were VM's that were one level less virtualized or something, but still essentially a VM. (So, I thought that docker containers saw a virtual box with a virtual bios, fake ram size, etc etc). thanks for clearing this up for me!
hardwaresofton#
No problem, it's really interesting isn't it! There's so much cool stuff out there related to this, the other side of the surge of DevOps hype that people don't see as often, there's tons of cool tech powering these newish ways of deploying software
vkaku1 reply#
Yes, but the cool thing is definitely the single system image
eeZah7Ux1 reply#
They seem to do very little that SystemD cannot already do with services and overlayFS, with the added benefit of being already available on most systems.
hn23#
SystemD does not run on Windows which ist still being used in many companies..
oconnore1 reply#
I love that your website is “god arch[itecture].com”. Was that intentional?
pknopf#
lol, nope.

It was a pattern I saw with Hugo and other Go projects.

mathnmusic#
Shameless plug about containers: We recently launched https://cloudcron.polyglot.network

Tell us a Docker image, a command with arguments to run and a cron schedule - and we will execute the task and send its STDOUT to your preferred endpoint (either an email or webhook). We're in beta and are offering 15$ worth of execution time as free trial and would really appreciate HNers giving it a try.
Our blog post has more details: http://polyglot.network/cloudcron