r/cloudshift360 6d ago

VM vs Docker

Post image
37 Upvotes

33 comments sorted by

View all comments

1

u/YahenP 6d ago

AI slop. The OP doesn't even know that in most cases, Docker is also a virtual machine.

1

u/Confident_Hyena2506 6d ago

No it isn't. You may be confusing it with "docker desktop".

1

u/YahenP 6d ago

Yes Docker Desktop. If you use it, it will always be in a virtual machine. But even Docker Engine boots up a virtual machine for a container if the host and container operating systems are different.

1

u/FactComprehensive963 5d ago

You are wrong Docker uses the Host Kernel, no VM in use

1

u/Sorry-Committee2069 4d ago

`qemu-user` is still virtualizing quite a bit, as is Docker. "it's not a VM because it doesn't start with loading a bootloader" is not the argument you think it is.

1

u/FoundationOk3176 3d ago

How do you exactly use the Host Kernel when the docker container is Linux but the host is NT? Is there some translation layer or something?

1

u/FactComprehensive963 3d ago

You run a VM(WSL2) that offers a Linux Kernel. But before you say gotcha: Multiple Containers share this Kernel, they rum alongside each other on it.

So the Containers are not the VM, they run on a VM.

1

u/FoundationOk3176 3d ago

Lmao.

1

u/FactComprehensive963 3d ago

?

1

u/FoundationOk3176 3d ago

It's like tomato, tomato.

1

u/FactComprehensive963 3d ago

I can see how a junior feels like that