News for hackers. Stuff that matters.
Re:Podman vs. Docker: Comparing the two containerization tools by happymellon on Thursday February 09, 2023 @02:16AM (#34720708)
Honestly I hate using my Mac for container based development. I know it is "hypervisors so faster than VMs", but the workflow is so slow that when I do personal Dev work on my older £400 Lenovo with Linux it runs rings around my MacBook when dealing with containers.
Re:Podman vs. Docker: Comparing the two containerization tools by apatheticonion on Thursday February 09, 2023 @02:23AM (#34720750)
Agreed, I too have been moving off MacOS for my workflow. Wouldn't it be great if we could take full advantage of the incredible battery life and single threaded performance of our MBPs?

I think Linux running flawlessly, with full hardware acceleration, all the drivers and equal or close battery life on a MBP would make it the best laptop money could buy. Until that day, it's a ferrari with square wheels

Re:Podman vs. Docker: Comparing the two containerization tools by kramerger on Thursday February 09, 2023 @03:46AM (#34721275)
> hypervisors so faster than VMs

Not sure what you mean by that, hypervisor is what allow the VMs to exist.

Anyway, containers are a Linux thing so I use a Linux laptop when working with containers. No VM is needed and life is great.

Re:Podman vs. Docker: Comparing the two containerization tools by happymellon on Thursday February 09, 2023 @04:18AM (#34721505)
Because it's hard to talk about some of these things without getting someone trying to "correct" me on terminology.

Hypervisors are one method of running virtual machines, you also have classical virtualisation methods and when I bring up the virtual machines being slow, I always get someone who pushes up their glasses with an "well actually its a Hypervisor running it, so it's essentially native speed".

I find Linux is a much nicer development environment all around though.

Re:Podman vs. Docker: Comparing the two containerization tools by misnome on Thursday February 09, 2023 @04:38AM (#34721667)
No, it’s not being pedantic when you are using terminology in a confusing or incorrect way that leads to it being unclear exactly what you are complaining about.

What do you mean by “classical virtualisation methods”, actual CPU emulation so you can run e.g. PowerPC on x86?

Re:Podman vs. Docker: Comparing the two containerization tools by happymellon on Thursday February 09, 2023 @04:59AM (#34721810)
This adds nothing to the conversation.

There is nothing unclear about what I said, I understand that hypervisors are supposed to be fast "almost native speed!". I also know that running Docker/Podman in Linux on MacOS isn't fast for many reasons.

Re:Podman vs. Docker: Comparing the two containerization tools by KAMSPioneer on Thursday February 09, 2023 @06:57AM (#34722654)
I'm also confused as to what you mean. The hypervisor is what's running the VMs, no? So I don't understand your original comment where you say "hypervisors so faster than VMs" either.

I don't think misnome is trying to be pedantic either, I think we're both unclear as to what you're trying to say.

Edit: I'm also dubious that hypervisors always offer "native" speed. To me this seems like it depends a lot on the hypervisor, the workload, the guest OS, etc.

Re:Podman vs. Docker: Comparing the two containerization tools by happymellon on Thursday February 09, 2023 @07:45AM (#34723146)
Wow, it's been 5 years since Docker moved to using the Hyperkit hypervisor.

But anyway prior to that it used VirtualBox (on Mac) if I remember correctly, which is a full virtualisation environment.

Re:Podman vs. Docker: Comparing the two containerization tools by KAMSPioneer on Thursday February 09, 2023 @09:43AM (#34724626)
But...VirtualBox is a hypervisor, too. It says so in their documentation. I'm sure using the built-in hypervisor framework in MacOS bring performance improvements, but they're changing one hypervisor for the other.

Anyway, taking a guess at what you're saying: do you mean full software virtualization vs. hardware-assisted virtualization? If so, I would agree with you that even best-case performance of HA VMs is not quite bare-metal; sometimes it's close enough to not matter much.

Re:Podman vs. Docker: Comparing the two containerization tools by scns on Friday February 10, 2023 @01:23AM (#34736312)
Docker on Mac creates a full Linux VM, thats one reason it is so slow, the other being the filesystem IIRC. The hypervisor does not matter that much.
Re:Podman vs. Docker: Comparing the two containerization tools by misnome on Saturday February 11, 2023 @12:24PM (#34754257)
Hyperkit is a hypervisor. Virtualbox is a hypervisor. Hyper-V is a hypervisor. VMWare products are hypervisors. They are all hypervisors, a hypervisor is just the platform that manages the virtualisation (which is a CPU feature). What changes is what parts of the host system are emulated and the manner in which system peripherals are passed through. The only alternative to a hypervisor that you could mean is full-system emulation, e.g. some modes of QEMU where the CPU itself is emulated on top of another system. This is obviously slow.

Virtualised OS are obviously "slightly" slower because they now don't have 100% of a system to use, and usually require a dedicated chunk of the system RAM, but usually what people actually mean by saying they are slower is because often they don't have direct hardware peripheral access (e.g. their own dedicated network card and disk drives) and the hypervisor emulates some amount of the system. This is the case with the most accessible linux VMs that run docker, because simulating the block devices on top of the MacOS filesystem is slow.

Docker itself is none of these, it's a fancy chroot enabled by linux kernel features, so _requires_ running on top of linux or a sufficiently linux-like compatibility layer.

So you see why it's somewhat incoherent and makes it sound like you are talking out of your ass when you complain that Hyperkit is a hypervisor but "Virtual machines aren't", but all these horrible people keep disagreeing with you.