Earlier quoted context omitted.
But per the other reply, containers are a lot less "contained" than VM's? I.e. if a program wants to list its set of processes, the host could fuck up and show them some from outside its container - whereas for the same thing to happen by a VM, it would have to have code to read that outside stuff, functionality it might not even contain... so vm's seem safer than containers... is that right?
Yep, VMs are safer than containers, because there is a larger barrier between the possibly malicious code running inside the VM than there is in the container context. A container is just another process, bound by limitations via namespaces and cgroups -- running on a shared kernel as a host. But don't take my word for it: > Simply put, containers are just processes, and as such they are governed by the kernel like a…
Show HN: Slim – Build and run tiny VMs from Dockerfiles
141–144 of 144 posts
Re: Show HN: Slim – Build and run tiny VMs from Dockerfiles
#142Earlier quoted context omitted.
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 ima…
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!
Re: Show HN: Slim – Build and run tiny VMs from Dockerfiles
#143Earlier quoted context omitted.
You think they will, one day?
You can tighten containers but at the end of the day they are running as native processes on the same kernel. Any vulnerability and game is over. VM offers an easier (maybe heavy) mental model of security. Between guests and between guest and host.
"Containers are less secure" is just FUD. That VM's or containers alike are running on the same CPU is currently a much more real threat.
Re: Show HN: Slim – Build and run tiny VMs from Dockerfiles
#144Earlier quoted context omitted.
You think they will, one day?
Docker- probably not. Other runtimes like Kata and Firecracker? Probably.