News for hackers. Stuff that matters.
Re:Docker Desktop no longer free for large companies by vesinisa on Tuesday August 31, 2021 @03:46PM (#28372617)
Wait, so you're running your app on virtualized Linux inside Docker inside Linux inside Virtualbox inside native MacOS?
Re:Docker Desktop no longer free for large companies by TheDong on Tuesday August 31, 2021 @03:52PM (#28372693)
That's a reductive way to phrase it, but more or less yes.

It's arguable if the container is "virtualized linux" as they all share a single linux kernel. In reality there's one virtual machine, one linux kernel, and many linux userspaces (one per container), which is kinda the whole point of containers.

Over docker+linux, the virtual machine is the only additional layer.

fwiw, I personally don't use macOS, so I've only got virtualized linux (containers) run by docker running on linux running on my hardware.

Are you trying to make a point or something here? Like, yes, we've built layers of abstraction that include different types of virtualization (VMs and containers), and they compose. Is that all you're observing?

Re:Docker Desktop no longer free for large companies by vesinisa on Tuesday August 31, 2021 @03:59PM (#28372789)
> Are you trying to make a point or something here?

Nah, just curious/intrigued by how these stack.

OS-level virtualization is very much a thing. I'd be interesting to compare this to the approach taken by Docker Dekstop for Mac. I bet they do something quite similar (hypervisor-based virtualization like Virtualbox) - nothing fancy like WSL1 that I believe runs a sort of "tortured" Linux kernel inside the NT kernel.

Re:Docker Desktop no longer free for large companies by simiones on Tuesday August 31, 2021 @04:27PM (#28373169)
WSL1 didn't run a Linux kernel at all - it was implementing the Linux user-space API over the Windows NT kernel. Well, some of it - not enough to run Docker, for example.

Docker on Windows and Mac does the same as what is described above - it runs a Linux VM and runs the docker server inside that, and then does a little magic to expose native OS paths and so on to that VM. On Windows, it uses WSL2 by default now, but WSL2 is also a Hyper-V VM in the end, with some Windows magic to blend it more nicely in Windows workflows.

Re:Docker Desktop no longer free for large companies by Spivak on Tuesday August 31, 2021 @05:19PM (#28373808)
That’s how it has to work when there’s a kernel mismatch from host to guest. You’re implying more layers than there actually are.

- MacOS running a hypervisor

- A Linux VM with Docker installed.

- A Linux container running on that VMs kernel.

Containers on Linux aren’t virtualized (normally, you could use runV I suppose if you wanted). The only overhead is the extra disk space to extract the root fs of the container image and the namespacing.

Re:Docker Desktop no longer free for large companies by hda111 on Tuesday August 31, 2021 @07:58PM (#28375068)
You can run systemd in podman or LXD containers.

LXC was the first container implementation on Linux and uses full Linux systems similar to a VM.

Re:Docker Desktop no longer free for large companies by _joel on Tuesday August 31, 2021 @04:25PM (#28373143)
It's spinning pinwheels all the way down
Re:Docker Desktop no longer free for large companies by lugged on Wednesday September 01, 2021 @09:28AM (#28379532)
I use Linux and I have no idea what y'all are talking about.